diff --git a/dmp-frontend/Dockerfile b/dmp-frontend/Dockerfile index 06d03af52..8a4290305 100644 --- a/dmp-frontend/Dockerfile +++ b/dmp-frontend/Dockerfile @@ -10,7 +10,6 @@ RUN npm install --legacy-peer-deps && mkdir /src && mv ./node_modules ./src WORKDIR /src COPY . . - # Build the project and copy the files RUN npm run ng build -- --configuration production #RUN node --max_old_space_size=8192 node_modules/@angular/cli/bin/ng build -- --deploy-url=/ --prod @@ -28,7 +27,7 @@ RUN mkdir -p /tmp/log/nginx RUN rm -rf /usr/share/nginx/html/* # Copy from the stage 1 -COPY --from=builder /src/dist /usr/share/nginx/html +COPY --from=builder /src/src /usr/share/nginx/html RUN cp /usr/share/nginx/html/index.html /usr/share/nginx/html/index_base.html EXPOSE 8080