dockerize wip

This commit is contained in:
hackerESQ
2024-09-04 17:48:40 -05:00
parent 1c98c374bb
commit 9b7dfb2baf
8 changed files with 195 additions and 6 deletions
+18
View File
@@ -0,0 +1,18 @@
#!/bin/bash
echo "Running entrypoint script..."
if [ ! -f /var/www/app/.env ]; then
echo "Ope, gotta create an .env file!"
cp /var/www/app/.env.example /var/www/app/.env
fi
echo "Waiting a second for the database to become available..."
sleep 2
echo "Running migrations..."
/usr/local/bin/php /var/www/app/artisan migrate
echo "Spinning up Supervisor daemon..."
exec /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf