Container Build Scripts and Entrypoints
Container Build Scripts and Entrypoints
Always end Docker entrypoint.sh scripts with exec "$@" to pass PID 1 to the application so it properly receives OS signals:
#!/bin/sh
set -e
# Perform migrations or config generation
exec "$@"