build: update Dockerfile for dynamic env configuration

This commit is contained in:
Constantin Simonis 2025-05-21 13:31:28 +02:00
commit 657ce4ed40
No known key found for this signature in database
GPG key ID: 3878FF77C24AF4D2
5 changed files with 66 additions and 14 deletions

View 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;'