Modify container signal handling
All checks were successful
Docker Build and Push / build-and-push (push) Successful in 1m11s

This commit is contained in:
2025-08-12 02:58:05 -07:00
parent 227fdca580
commit c1ef92e832
2 changed files with 18 additions and 8 deletions

13
entrypoint.sh Normal file
View File

@@ -0,0 +1,13 @@
#!/bin/sh
# Run the application in the background
python generate_config.py && python pterodisbot.py &
# Capture the process ID
PID=$!
# Wait for SIGTERM signal
trap "kill -INT $PID" SIGTERM
# Wait for the process to complete
wait $PID