build: update Dockerfile for dynamic env configuration
This commit is contained in:
parent
c68b3f2f7e
commit
657ce4ed40
5 changed files with 66 additions and 14 deletions
8
frontend/docker-entrypoint.sh
Normal file
8
frontend/docker-entrypoint.sh
Normal file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Replace environment variables in env.js
|
||||
envsubst < /usr/share/nginx/html/env.js > /usr/share/nginx/html/env.js.tmp
|
||||
mv /usr/share/nginx/html/env.js.tmp /usr/share/nginx/html/env.js
|
||||
|
||||
# Start nginx
|
||||
exec nginx -g 'daemon off;'
|
Reference in a new issue