From 4df080211fd04123e8ea80ca704f5d55d2362aaa Mon Sep 17 00:00:00 2001 From: rem Date: Sun, 30 Jun 2024 02:52:02 +0200 Subject: [PATCH] pp7 --- Dockerfile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index cc31aca..6d7ecef 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,11 +4,12 @@ WORKDIR /usr/src/app COPY package.json package-lock.json ./ RUN npm install COPY . . -RUN npm run build - -### STAGE 2: Run ### -FROM nginx:alpine EXPOSE 8080 +CMD ["ng", "serve", "--host", "0.0.0.0", "--port", "8080"] + +# ### STAGE 2: Run ### +# FROM nginx:alpine +# EXPOSE 8080 -COPY nginx.conf /etc/nginx/nginx.conf -COPY --from=build /usr/src/app/dist/portfolioo/browser /usr/share/nginx/html +# COPY nginx.conf /etc/nginx/nginx.conf +# COPY --from=build /usr/src/app/dist/portfolioo/browser /usr/share/nginx/html