correzione a Dockerfile
This commit is contained in:
parent
e89842350b
commit
858234e937
1 changed files with 2 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
# BUILD
|
# BUILD
|
||||||
FROM node:20-alpine AS builder
|
FROM node:20-alpine AS builder
|
||||||
|
|
||||||
WORKDIR /andreavillari
|
WORKDIR /root/andreavillari
|
||||||
|
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
@ -19,7 +19,7 @@ RUN npm run builder
|
||||||
|
|
||||||
# --- STAGE 2 : Production (Serve file statici con Nginx)---
|
# --- STAGE 2 : Production (Serve file statici con Nginx)---
|
||||||
FROM nginx:alpine
|
FROM nginx:alpine
|
||||||
COPY --from-builder /andreavillari
|
COPY --from-builder /root/andreavillari
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue