diff --git a/php-fpm/Dockerfile b/php-fpm/Dockerfile index 4f9ffcf..0fa50a1 100644 --- a/php-fpm/Dockerfile +++ b/php-fpm/Dockerfile @@ -322,6 +322,8 @@ RUN set -eux; \ pecl install swoole-4.3.5; \ elif [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "70100" ]; then \ pecl install swoole-4.5.11; \ + elif [ $(php -r "echo PHP_MAJOR_VERSION;") = "7" ]; then \ + pecl install swoole-4.8.12; \ else \ pecl install swoole; \ fi; \ diff --git a/php-worker/Dockerfile b/php-worker/Dockerfile index d384c01..bfbb502 100644 --- a/php-worker/Dockerfile +++ b/php-worker/Dockerfile @@ -355,6 +355,8 @@ RUN set -eux; \ pecl install swoole-4.3.5; \ elif [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "70100" ]; then \ pecl install swoole-4.5.11; \ + elif [ $(php -r "echo PHP_MAJOR_VERSION;") = "7" ]; then \ + pecl install swoole-4.8.12; \ else \ pecl install swoole; \ fi; \ diff --git a/workspace/Dockerfile b/workspace/Dockerfile index 7e06f88..625462d 100644 --- a/workspace/Dockerfile +++ b/workspace/Dockerfile @@ -551,6 +551,8 @@ RUN set -eux; \ echo '' | pecl -q install swoole-4.3.5; \ elif [ $(php -r "echo PHP_MAJOR_VERSION;") = "7" ] && [ $(php -r "echo PHP_MINOR_VERSION;") = "1" ]; then \ echo '' | pecl -q install swoole-4.5.11; \ + elif [ $(php -r "echo PHP_MAJOR_VERSION;") = "7" ]; then \ + echo '' | pecl -q install swoole-4.8.12; \ else \ echo '' | pecl -q install swoole; \ fi; \