Files
nuxtci/Dockerfile
valere 5f4e526d6d
Some checks failed
Deploy App / test (push) Failing after 37s
Deploy App / deploy (push) Failing after 10s
test
2025-09-20 00:51:22 +02:00

23 lines
419 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 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"]