docker-entrypoint.sh boilerplate

This commit is contained in:
Leopere 2018-10-16 20:50:01 -04:00
parent a6176e459f
commit dbdd61d188

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