modifiche a Dockerfile

This commit is contained in:
Andre Villari 2026-10-25 23:46:37 +01:00
parent fb61f3f026
commit 22d4c2ed28

View file

@ -0,0 +1,19 @@
# BUILD
FROM node:20-alpine AS builder
WORKDIR /andreavillari
COPY package*.json ./
RUN npm install
COPY . .
ENV NODE_OPTIONS:--max-old-space-size-768
RUN npm run builder
#RPUDUCTION (standalone)
FROM mginx:20-alpine
COpY --from-builder /andreavillari
EXPOSE 80
CMD ["nginx","-g","daemon off;"]