drop build stage to make server change works on prod
All checks were successful
Deploy App / build (push) Successful in 48s
Deploy App / test (push) Successful in 49s
Deploy App / deploy (push) Successful in 16s

This commit is contained in:
valere
2025-09-18 14:45:54 +02:00
parent 0707ad4de2
commit 403afdfbc3

View File

@@ -1,4 +1,3 @@
# Stage de build
FROM node:20-alpine AS build
WORKDIR /app
@@ -9,15 +8,5 @@ RUN pnpm install --frozen-lockfile
COPY . .
RUN pnpm build
# Stage production
FROM node:20-alpine
WORKDIR /app
COPY --from=build /app/.output .output
COPY --from=build /app/package.json ./
RUN pnpm install --prod --frozen-lockfile
EXPOSE 3000
CMD ["node", ".output/server/index.mjs"]