diff --git a/Dockerfile b/Dockerfile
index 63b59d0233279cdd026e7af138dd6fdf82bcd72e..f98348cf607acd86dd0ba66b2e3bb7b9c5ec41f3 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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;'"]
diff --git a/custom/custom_env.js.template b/custom/custom_env.js.template
new file mode 100644
index 0000000000000000000000000000000000000000..050a7d87e95a14cdae4f31edfbd605708c25890b
--- /dev/null
+++ b/custom/custom_env.js.template
@@ -0,0 +1,2 @@
+// eslint-disable-next-line no-template-curly-in-string
+window.__env__.OPA_BUNDLE_URL = "${REACT_APP_OPA_BUNDLE_URL}";