We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2c7b46 commit f73a66dCopy full SHA for f73a66d
1 file changed
php-fpm/Dockerfile
@@ -197,9 +197,13 @@ ARG INSTALL_PHPREDIS=false
197
198
RUN if [ ${INSTALL_PHPREDIS} = true ]; then \
199
# Install Php Redis Extension
200
- printf "\n" | pecl install -o -f redis \
201
- && rm -rf /tmp/pear \
202
- && docker-php-ext-enable redis \
+ if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
+ pecl install -o -f redis-4.3.0; \
+ else \
203
+ pecl install -o -f redis; \
204
+ fi \
205
+ && rm -rf /tmp/pear \
206
+ && docker-php-ext-enable redis \
207
;fi
208
209
###########################################################################
0 commit comments