magricambi/dockerfile/Dockerfile
Andre Villari 7180391c89
All checks were successful
Deploy to VPS / deploy (push) Successful in 39s
commit di prova
2026-10-19 17:10:49 +02:00

26 lines
461 B
Docker

# BUILD
FROM node:20-alpine AS builder
WORKDIR /magricambi
COPY package*.json ./
RUN npm install
COPY . .
ENV NODE_OPTIONS:--max-old-space-size=768
RUN npm run build
#PRODUCTION (standalone)
FROM node:20-alpine
WORKDIR /magricambi
ENV NODE_ENV=production
COPY --from=builder /magricambi/.next/standalone ./
COPY --from=builder /magricambi/.next/static ./.next/static
COPY --from=builder /magricambi/public ./public
EXPOSE 3000
CMD ["node","server.js"]