diff --git a/Dockerfile b/Dockerfile index dd63aac69db868fde3255482950d74a24dcd36c4..63b59d0233279cdd026e7af138dd6fdf82bcd72e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -39,4 +39,4 @@ COPY --from=builder /app/orchestrator-core-gui/build /usr/share/nginx/html COPY --from=builder /app/orchestrator-core-gui/src/env.js.template . EXPOSE 8080 -CMD [ "/bin/ash", "-c", "envsubst < env.js.template > /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 >> /usr/share/nginx/html/env.js && exec nginx -g 'daemon off;'"] diff --git a/custom/custom_env.js b/custom/custom_env.js new file mode 100644 index 0000000000000000000000000000000000000000..eda2ecc592e6d17144d21decdb94495208228de2 --- /dev/null +++ b/custom/custom_env.js @@ -0,0 +1 @@ +window.__env__.REACT_APP_OPA_BUNDLE_URL = "${REACT_APP_OPA_BUNDLE_URL}"; \ No newline at end of file