CI pnpm -> npm
All checks were successful
Deploy App / build (push) Successful in 23s
Deploy App / deploy (push) Successful in 21s

This commit is contained in:
valere
2025-11-07 20:10:09 +01:00
parent 4014335150
commit 8bfa7f856f

View File

@@ -1,22 +1,15 @@
# Stage de build
FROM node:20-alpine AS build
FROM node:20-bookworm AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
RUN npm run build
RUN npm install -g pnpm
COPY package.json pnpm-lock.yaml* ./
RUN pnpm install --frozen-lockfile
COPY . .
RUN pnpm build
# Stage production
FROM node:20-alpine
FROM node:20-slim AS runner
WORKDIR /app
COPY --from=build /app/.output .output
COPY --from=build /app/package.json ./
COPY --from=build /app/node_modules ./node_modules
COPY --from=builder /app/.output ./.output
COPY package*.json ./
EXPOSE 3000
CMD ["node", ".output/server/index.mjs"]