add entry point for release docker
This commit is contained in:
parent
f5950658df
commit
57a24f8c90
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