All checks were successful
Docker Build and Push / build-and-push (push) Successful in 1m11s
13 lines
323 B
Bash
13 lines
323 B
Bash
#!/bin/sh
|
|
|
|
# Run the application in the background
|
|
python generate_config.py && python pterodisbot.py &
|
|
|
|
# Capture the application's process ID
|
|
pid=$!
|
|
|
|
# Trap the SIGTERM signal and pass it through to the process upon container receiving stop command
|
|
trap "kill -TERM $pid" SIGTERM
|
|
|
|
# Wait for process to complete
|
|
wait $pid |