File tree Expand file tree Collapse file tree 3 files changed +171
-48
lines changed
Expand file tree Collapse file tree 3 files changed +171
-48
lines changed Original file line number Diff line number Diff line change 1- FROM node:lts-alpine AS build
1+ # Build stage
2+ FROM node:22-alpine AS build
23RUN 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
312WORKDIR /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
917FROM 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
1119COPY --from=build /app/dist /usr/share/nginx/html
1220
13- USER 1000
21+ USER 9999
1422EXPOSE 8080
Original file line number Diff line number Diff line change 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 },
You can’t perform that action at this time.
0 commit comments