Skip to content

Instantly share code, notes, and snippets.

@douglasmiranda
Created April 10, 2024 01:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save douglasmiranda/d85d12de73dd75fbc39e22bcb41088d1 to your computer and use it in GitHub Desktop.
Save douglasmiranda/d85d12de73dd75fbc39e22bcb41088d1 to your computer and use it in GitHub Desktop.
Docker entrypoint template
#!/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