modifiche a Dockerfile
This commit is contained in:
parent
fb61f3f026
commit
22d4c2ed28
1 changed files with 19 additions and 0 deletions
|
|
@ -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;"]
|
||||||
Loading…
Add table
Reference in a new issue