docker-entrypoint.sh boilerplate

This commit is contained in:
Leopere 2018-10-16 20:50:01 -04:00
parent 30ef0fe806
commit 669c2791e8
No known key found for this signature in database
GPG key ID: 64476C903E477CCB

View file

@ -0,0 +1,13 @@
#!/usr/bin/env bash
# default to run whatever the user wanted like "/bin/bash"
## If user runs no need to run any more of the entrypoint script.
if [[ -z "$@" ]]; then
echo "User did not attempt input. Now executing docker-entrypoint."
else
echo "Running $@."
exec "$@"
exit 1
fi
/bin/bash