docker-entrypoint.sh boilerplate
This commit is contained in:
parent
a6176e459f
commit
dbdd61d188
1 changed files with 13 additions and 0 deletions
13
lbrycrd/compile/docker-entrypoint.sh
Normal file
13
lbrycrd/compile/docker-entrypoint.sh
Normal 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
|
Loading…
Reference in a new issue