nginx-routes/docker-entrypoint.sh

14 lines
241 B
Bash
Raw Permalink Normal View History

2023-09-01 23:08:48 +02:00
#!/usr/bin/env bash
set -Eeo pipefail
if [ -f "/invoke_initial_script.sh" ]; then
chmod +x /invoke_initial_script.sh
source /invoke_initial_script.sh
fi
if [[ "$1" = 'app' ]]; then
exec nginx -g 'daemon off;'
else
exec "$@"
fi