Merge pull request #28 from capcom6/bugfix/docker-entrypoint

Fixed: signals handling in Docker
This commit is contained in:
capcom6 2024-01-30 08:33:52 +07:00 committed by GitHub
commit 7899219fdd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 "$@"