add entry point for release docker
This commit is contained in:
parent
cede0e7985
commit
65a09328cc
20
docker/scripts/entry-point.sh
Executable file
20
docker/scripts/entry-point.sh
Executable 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 $?
|
Loading…
Reference in New Issue
Block a user