chore: update Dockerfile

This commit is contained in:
jmal 2024-05-22 16:47:07 +08:00
parent 1decbfa30e
commit a8417e6ce1
2 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,4 @@
window._env_ = {
API_URL: "",
API_OFFICE_URL: "",
API_URL: "${API_URL}",
API_OFFICE_URL: "${API_OFFICE_URL}"
};

View File

@ -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 "$@"