From 5bc07e986ee737a0512c5528b390c04ad8dc2811 Mon Sep 17 00:00:00 2001 From: "aurian.jault" Date: Mon, 1 Jul 2024 00:44:31 +0200 Subject: [PATCH] fixed --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 12049a3..6ba88f6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,10 @@ FROM node:latest as build -WORKDIR /app -COPY ./ /app +WORKDIR /usr/local/app +COPY ./ /usr/local/app/ + RUN npm install RUN npm run build FROM nginx:latest -COPY --from=build /app/dist/portofolio /usr/share/nginx/html +COPY --from=build /usr/local/app/dist/portofolio /usr/share/nginx/html EXPOSE 80