2019-09-29 01:28:04 +02:00
|
|
|
#!/usr/bin/dumb-init /bin/sh
|
|
|
|
|
|
|
|
# Integrate environment variables
|
|
|
|
sed -i "s|__BACKEND__|${BACKEND_HOST}|" \
|
2020-09-01 20:06:22 +02:00
|
|
|
/etc/nginx/nginx.conf
|
2019-09-29 01:28:04 +02:00
|
|
|
sed -i "s|__BASEURL__|${BASE_URL:-/}|g" \
|
2020-09-01 20:06:22 +02:00
|
|
|
/var/www/index.htm \
|
|
|
|
/var/www/manifest.json
|
2019-09-29 01:28:04 +02:00
|
|
|
|
|
|
|
# Start server
|
2020-06-05 16:54:32 +02:00
|
|
|
exec nginx
|