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