diff --git a/Dockerfile b/Dockerfile index 85a3c45..c965281 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,11 @@ RUN npm install -g @angular/cli RUN npm install COPY . . EXPOSE 8080 -CMD ["ng", "serve", "--host", "0.0.0.0", "--port", "8080"] +RUN npm install -g http-server +RUN npm run build -- --configuration=production --base-href='/containers/remiarnal-portfolioo' +RUN cd dist/your-project-name +CMD ["http-server", "-p", "8080"] +# CMD ["ng", "serve", "--host", "0.0.0.0", "--port", "8080"] # ### STAGE 2: Run ### # FROM nginx:alpine