diff --git a/scripts/docker-entrypoint.sh b/scripts/docker-entrypoint.sh index f31e0bc..2cee6eb 100755 --- a/scripts/docker-entrypoint.sh +++ b/scripts/docker-entrypoint.sh @@ -1,4 +1,10 @@ #!/bin/sh +# docker-entrypoint.sh -/app/app db:migrate up \ - && /app/app $@ +# Immediately exit if any command has a non-zero exit status. +set -e + +# Execute any pre-startup scripts or tasks. +/app/app db:migrate up + +exec /app/app "$@"