diff --git a/chainquery/docker-entrypoint.sh b/chainquery/docker-entrypoint.sh new file mode 100644 index 0000000..8048ecd --- /dev/null +++ b/chainquery/docker-entrypoint.sh @@ -0,0 +1,14 @@ +#!/bin/bash +#!/bin/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