diff --git a/entrypoint.sh b/entrypoint.sh index 4a0f5ef..ce3d439 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,10 +1,15 @@ #!/bin/sh +# Starting base services echo "[ INFO ] Starting MySQL Server" service mysql start echo "[ INFO ] Starting PHP 7.2 Service" service php7.2-fpm start +# Running friendBook database setup script +echo "[ INFO ] Setting up friendBook database" +mysql -u root < /scripts/friendBook.sql + echo "[ INFO ] Starting nginx" nginx -g "daemon off;" # Foreground