|
|
@@ -4,12 +4,12 @@ set -e
|
|
|
if [[ ! -z "$BASE_URL_OVERRIDE" ]]; then
|
|
|
echo "running with BASE_URL=${BASE_URL_OVERRIDE}"
|
|
|
sed -i "s^{PLACEHOLDER_BASE_URL}^$BASE_URL_OVERRIDE^g" /var/www/*.js
|
|
|
-else
|
|
|
+else
|
|
|
echo "running with BASE_URL=${BASE_URL}"
|
|
|
sed -i "s^{PLACEHOLDER_BASE_URL}^$BASE_URL^g" /var/www/*.js
|
|
|
fi
|
|
|
|
|
|
-envsubst '$API_PORT $UI_PORT' < /etc/nginx/conf.d/default.nginx.conf.template > /etc/nginx/conf.d/default.nginx.conf
|
|
|
+envsubst '$API_PORT $API_SERVER $UI_PORT' < /etc/nginx/conf.d/default.nginx.conf.template > /etc/nginx/conf.d/default.nginx.conf
|
|
|
|
|
|
# Run the parent (nginx) container's entrypoint script
|
|
|
-exec /docker-entrypoint.sh "$@"
|
|
|
+exec /docker-entrypoint.sh "$@"
|