Skip to content

Commit a5c189d

Browse files
committed
ci: Fix ci
1 parent b3d8104 commit a5c189d

File tree

3 files changed

+171
-48
lines changed

3 files changed

+171
-48
lines changed

apps/spuxx-astro/Dockerfile

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
1-
FROM node:lts-alpine AS build
1+
# Build stage
2+
FROM node:22-alpine AS build
23
RUN apk add g++ make py3-pip
4+
ENV PNPM_HOME="/pnpm"
5+
ENV PATH="$PNPM_HOME:$PATH"
6+
RUN corepack enable
7+
8+
# Copy the application folder
9+
COPY . ./app
10+
11+
# Install dependencies and build
312
WORKDIR /app
4-
COPY package*.json ./
5-
RUN npm install --frozen-lockfile
6-
COPY . .
7-
RUN npm run build -- --mode custom
13+
RUN pnpm install --no-frozen-lockfile
14+
RUN pnpm build
815

16+
# Production stage
917
FROM nginxinc/nginx-unprivileged:alpine AS runtime
10-
COPY ./.nginx/nginx.conf /etc/nginx/nginx.conf
18+
COPY --from=build /app/.nginx/nginx.conf /etc/nginx/nginx.conf
1119
COPY --from=build /app/dist /usr/share/nginx/html
1220

13-
USER 1000
21+
USER 9999
1422
EXPOSE 8080

apps/spuxx-astro/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
"dependencies": {
1313
"@astrojs/mdx": "4.3.3",
1414
"@astrojs/sitemap": "3.3.0",
15-
"@astrojs/solid-js": "5.0.8",
15+
"@astrojs/solid-js": "5.1.0",
1616
"@spuxx/browser-utils": "1.10.0",
1717
"@spuxx/js-utils": "1.3.0",
1818
"@spuxx/solid": "1.7.0",
19-
"astro": "5.7.3",
19+
"astro": "5.13.2",
2020
"iconify-icon": "2.3.0",
2121
"solid-js": "1.9.5"
2222
},

0 commit comments

Comments
 (0)