mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-27 08:18:24 +03: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
1 changed files with 4 additions and 1 deletions
|
@ -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 a new issue