Commit a6ce584e authored by jcorvi's avatar jcorvi
Browse files

Update Dockerfile

parent 2140dac0
Pipeline #27063 canceled with stage
in 1 minute and 38 seconds
......@@ -21,6 +21,12 @@ COPY --from=build /usr/src/app/dist/my-app /usr/share/nginx/html
COPY src/manage /usr/share/nginx/html/manage
RUN cp /usr/share/nginx/html/manage/api.template /usr/share/nginx/html/manage/api
RUN sed -i "s/{RELEASE_DATE}/$(date +%F)/g" /usr/share/nginx/html/manage/api
RUN sed -i "s/{API_VERSION}/2.0/g" /usr/share/nginx/html/manage/api
RUN sed - i "s/{UUID}/$(uuidgen)/g" /usr/share/nginx/html/manage/api
RUN /usr/share/nginx/html/manage/api.template
#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