Files
nuxtci/Dockerfile
valere c5da118661
All checks were successful
Deploy App / test (push) Successful in 9s
Deploy App / deploy (push) Successful in 51s
test
2025-09-20 00:48:03 +02:00

24 lines
433 B
Docker

# Stage de build
FROM node:20-alpine AS build
WORKDIR /app
RUN npm install -g pnpm
COPY package.json pnpm-lock.yaml* ./
RUN pnpm install --frozen-lockfile
COPY . .
RUN pnpm test
RUN pnpm build
# Stage production
FROM node:20-alpine
WORKDIR /app
COPY --from=build /app/.output .output
COPY --from=build /app/package.json ./
COPY --from=build /app/node_modules ./node_modules
EXPOSE 3000
CMD ["node", ".output/server/index.mjs"]