Created
April 10, 2024 01:58
-
-
Save douglasmiranda/d85d12de73dd75fbc39e22bcb41088d1 to your computer and use it in GitHub Desktop.
Docker entrypoint template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -o errexit | |
set -o pipefail | |
# exec command: [..] from docker-compose.yml / stack.yml | |
exec "$@" | |
# Wait for any process to exit | |
wait -n | |
# Exit with status of process that exited first | |
exit $? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment