Fix Dockerization
This commit is contained in:
13
docker/entrypoint.sh
Normal file
13
docker/entrypoint.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
# Create runtime config file in writable location
|
||||
cat > /runtime-config/config.js <<EOF
|
||||
window.__APP_CONFIG__ = {
|
||||
API_BASE_URL: "${API_BASE_URL}",
|
||||
OTHER_VAR: "${OTHER_VAR}"
|
||||
};
|
||||
EOF
|
||||
|
||||
# Start Nginx
|
||||
exec nginx -g "daemon off;"
|
||||
Reference in New Issue
Block a user