diff --git a/Dockerfile b/Dockerfile index bfc98951..93aeea55 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,4 +25,4 @@ RUN chown www-data:www-data /app/storage/db.sqlite RUN cd frontend && npm install && npm run build RUN composer build -ENTRYPOINT [ "/app/entrypoint.sh" ] +CMD [ "/app/entrypoint.sh" ] diff --git a/web/entrypoint.sh b/web/entrypoint.sh index 7177e6b9..f4744d1e 100755 --- a/web/entrypoint.sh +++ b/web/entrypoint.sh @@ -10,10 +10,8 @@ cd /app echo "Running database migrations..." php artisan migrate --force -echo "Starting nginx server..." -openrc -touch /run/openrc/softlevel -rc-service nginx start - echo "Starting PHP server..." -php-fpm +php-fpm & + +echo "Starting nginx server..." +nginx -g 'daemon off;'