cat docker-entrypoint.sh
#!/bin/sh
set -e
# first arg is `-f` or `--some-option`
if [ "${1#-}" != "$1" ]; then
set -- haproxy "$@"
fi
exec "$@"
Created
June 18, 2017 16:10
-
-
Save vpack/0605e5af15067ee113d0ce516db66d17 to your computer and use it in GitHub Desktop.
Docker Entrypoint Samples
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment