Run RoadRunner in docker with exec to ensure signals are properly handled

This commit is contained in:
Alejandro Celaya
2024-10-17 15:03:55 +02:00
parent 51de4b17c0
commit 0635615149
3 changed files with 21 additions and 3 deletions

View File

@@ -72,5 +72,5 @@ CMD \
if [[ ! -d "./vendor" ]]; then /usr/local/bin/composer install ; fi && \
# Download roadrunner binary
if [[ ! -f "./bin/rr" ]]; then ./vendor/bin/rr get --no-interaction --no-config --location bin/ && chmod +x bin/rr ; fi && \
# This forces the app to be started every second until the exit code is 0
until ./bin/rr serve -c config/roadrunner/.rr.dev.yml; do sleep 1 ; done
# Run with `exec` so that signals are properly handled
exec ./bin/rr serve -c config/roadrunner/.rr.dev.yml