mirror of
https://github.com/shlinkio/shlink.git
synced 2025-01-24 15:26:38 -06:00
Updated swoole docker image so that it retries the start command until status code is 0
This commit is contained in:
parent
f0330e9ae3
commit
22b02de405
@ -92,4 +92,7 @@ WORKDIR /home/shlink
|
||||
# Expose swoole port
|
||||
EXPOSE 8080
|
||||
|
||||
CMD /usr/local/bin/composer update && php ./vendor/bin/zend-expressive-swoole start
|
||||
CMD /usr/local/bin/composer update && \
|
||||
# When restarting the container, swoole might think it is already in execution
|
||||
# This forces the app to be started every second until the exit code is 0
|
||||
until php ./vendor/bin/zend-expressive-swoole start; do sleep 1 ; done
|
||||
|
Loading…
Reference in New Issue
Block a user