From a8417e6ce167289e69bd624b79e130f4fe2331b9 Mon Sep 17 00:00:00 2001 From: jmal Date: Wed, 22 May 2024 16:47:07 +0800 Subject: [PATCH] chore: update Dockerfile --- config.js.template | 4 ++-- docker-entrypoint.sh | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/config.js.template b/config.js.template index 64157ba..5bfb8a9 100644 --- a/config.js.template +++ b/config.js.template @@ -1,4 +1,4 @@ window._env_ = { - API_URL: "", - API_OFFICE_URL: "", + API_URL: "${API_URL}", + API_OFFICE_URL: "${API_OFFICE_URL}" }; diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 800ed91..a945727 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -1,4 +1,7 @@ #!/bin/bash set -e +echo "API_URL: $API_URL" +echo "API_OFFICE_URL: $API_OFFICE_URL" envsubst '${API_URL} ${API_OFFICE_URL}' < /var/www/public/config.js.template > /var/www/public/config.js +cat /var/www/public/config.js exec "$@"