Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
10 changes: 4 additions & 6 deletions web/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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;'