add entry point for release docker

This commit is contained in:
Bence Pőcze 2023-09-16 15:06:11 +02:00
parent f5950658df
commit 57a24f8c90
Signed by: bence
GPG Key ID: DC5BD6E95A333E6D

20
docker/scripts/entry-point.sh Executable file
View File

@ -0,0 +1,20 @@
#!/bin/bash
set -e
echo "Migrating DB..."
./mapg db:migrate
echo "Installing crontab..."
/usr/bin/crontab docker/scripts/cron
set +e
/usr/sbin/cron -f &
/usr/sbin/php-fpm7.4 -F &
/usr/sbin/nginx -g 'daemon off;' &
/usr/bin/node multi &
wait -n
exit $?