docker-entrypoint.sh 289 B

123456789101112
  1. #!/bin/sh
  2. python3 -u /bootstrap/main.py
  3. BOOTSTRAP_EXIT_CODE=$?
  4. if [ $BOOTSTRAP_EXIT_CODE -ne 0 ]; then
  5. echo "Bootstrap failed with exit code $BOOTSTRAP_EXIT_CODE. Not starting Nginx."
  6. exit $BOOTSTRAP_EXIT_CODE
  7. fi
  8. echo "Bootstrap succeeded. Starting Nginx..."
  9. nginx -g "daemon off;"