casino/frontend/.docker/entrypoint.sh

7 lines
240 B
Bash
Executable file

#!/bin/sh
# Default values if not provided
: ${BACKEND_HOST:=localhost}
: ${BACKEND_PORT:=8080}
envsubst '$BACKEND_HOST $BACKEND_PORT' < /etc/nginx/templates/nginx.conf.template > /etc/nginx/conf.d/default.conf
exec nginx -g 'daemon off;'