Commit 44a25080 authored by jcorvi's avatar jcorvi
Browse files

Update Dockerfile

parent 03209294
Pipeline #27052 canceled with stage
in 8 seconds
......@@ -9,6 +9,7 @@ COPY . .
COPY src/assets/index.template.html src/index.html
#RUN npm run build --prod
RUN ./node_modules/.bin/ng build --prod --base-href /pretoxtm.kh.svc/
### STAGE 2: Run ###
FROM nginx:1.21.6-alpine
#fix refresh
......@@ -18,6 +19,8 @@ COPY ./nginx.conf /etc/nginx/nginx.conf
COPY --from=build /usr/src/app/dist/my-app /usr/share/nginx/html
COPY src/manage /usr/share/nginx/html/
#CMD ["/bin/sh", "-c", "envsubst < /usr/share/nginx/html/pretox/assets/env.template.js > /usr/share/nginx/html/pretox/assets/env.js && exec nginx -g 'daemon off;'"]
CMD ["/bin/sh", "-c", "envsubst < /usr/share/nginx/html/assets/env.template.js > /usr/share/nginx/html/assets/env.js && envsubst < /usr/share/nginx/html/index.html > /usr/share/nginx/html/index.html_2 && cp /usr/share/nginx/html/index.html_2 /usr/share/nginx/html/index.html && exec nginx-debug -g 'daemon off;'"]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment