chore: update Dockerfile
This commit is contained in:
parent
1decbfa30e
commit
a8417e6ce1
@ -1,4 +1,4 @@
|
||||
window._env_ = {
|
||||
API_URL: "",
|
||||
API_OFFICE_URL: "",
|
||||
API_URL: "${API_URL}",
|
||||
API_OFFICE_URL: "${API_OFFICE_URL}"
|
||||
};
|
||||
|
||||
@ -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 "$@"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user