build(docker): run automatic database migration in entrypoint

This commit is contained in:
Romain de Laage 2022-10-20 12:28:01 +02:00 committed by Yassine Doghri
parent 3419369af0
commit c94bd7cf81
1 changed files with 3 additions and 0 deletions

View File

@ -194,5 +194,8 @@ fi
echo "Using config:"
cat /opt/castopod/.env
cd /opt/castopod
php spark castopod:database-update
/usr/sbin/crond -f /crontab.txt -L /dev/stdout &
/usr/local/sbin/php-fpm