From 07b31384e9ed0843d116ad4ebff3fae5598d4b37 Mon Sep 17 00:00:00 2001 From: Shao Yu Lung Date: Sat, 20 Mar 2021 22:19:05 +0800 Subject: [PATCH] horizon support PHP 5.6 --- laravel-horizon/Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/laravel-horizon/Dockerfile b/laravel-horizon/Dockerfile index 194f615..10cf90e 100644 --- a/laravel-horizon/Dockerfile +++ b/laravel-horizon/Dockerfile @@ -35,7 +35,11 @@ RUN apk --update add wget \ procps RUN docker-php-ext-install mysqli mbstring pdo pdo_mysql tokenizer xml pcntl -RUN pecl channel-update pecl.php.net && pecl install memcached mcrypt-1.0.1 && docker-php-ext-enable memcached +RUN if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \ + pecl channel-update pecl.php.net && pecl install memcached-2.2.0 mcrypt-1.0.1 && docker-php-ext-enable memcached \ +;else \ + pecl channel-update pecl.php.net && pecl install memcached mcrypt-1.0.1 && docker-php-ext-enable memcached \ +;fi # Add a non-root user to help install ffmpeg: ARG PUID=1000