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