Skip to content
Snippets Groups Projects
Commit a54673e7 authored by Mohammad Torkashvand's avatar Mohammad Torkashvand
Browse files

fix missing custom_env.js.template in CMD runtime

parent 57ebbff8
No related branches found
No related tags found
2 merge requests!16Develop,!11fix missing custom_env.js.template in CMD runtime
Pipeline #85279 passed
......@@ -37,6 +37,7 @@ RUN apk update && apk add wget curl
COPY --from=builder /app/orchestrator-core-gui/default.conf /etc/nginx/conf.d/default.conf
COPY --from=builder /app/orchestrator-core-gui/build /usr/share/nginx/html
COPY --from=builder /app/orchestrator-core-gui/src/env.js.template .
COPY --from=builder /app/orchestrator-core-gui/src/custom/custom_env.js.template .
EXPOSE 8080
CMD [ "/bin/ash", "-c", "envsubst < env.js.template > /usr/share/nginx/html/env.js && envsubst < src/custom/custom_env.js >> /usr/share/nginx/html/env.js && exec nginx -g 'daemon off;'"]
CMD [ "/bin/ash", "-c", "envsubst < env.js.template > /usr/share/nginx/html/env.js && envsubst < src/custom/custom_env.js.template >> /usr/share/nginx/html/env.js && exec nginx -g 'daemon off;'"]
// eslint-disable-next-line no-template-curly-in-string
window.__env__.OPA_BUNDLE_URL = "${REACT_APP_OPA_BUNDLE_URL}";
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment