From a6afd6402262f651be54557701b8e4fb3bf7ae3e Mon Sep 17 00:00:00 2001 From: Mohammad Torkashvand <mohammad.torkashvand@geant.org> Date: Tue, 9 Jan 2024 12:07:24 +0100 Subject: [PATCH] fix missing custom_env.js.template in CMD runtime --- Dockerfile | 2 +- custom/custom_env.js | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) delete mode 100644 custom/custom_env.js diff --git a/Dockerfile b/Dockerfile index f98348c..57e5f1c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,4 +40,4 @@ 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.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 < custom_env.js.template >> /usr/share/nginx/html/env.js && exec nginx -g 'daemon off;'"] diff --git a/custom/custom_env.js b/custom/custom_env.js deleted file mode 100644 index 050a7d8..0000000 --- a/custom/custom_env.js +++ /dev/null @@ -1,2 +0,0 @@ -// eslint-disable-next-line no-template-curly-in-string -window.__env__.OPA_BUNDLE_URL = "${REACT_APP_OPA_BUNDLE_URL}"; -- GitLab