Merge pull request #2196 from akccakcctw/fix/php-fpm-build-fail
Fix php-fpm build fail (php5)
This commit is contained in:
commit
861ea6b16e
|
@ -202,9 +202,13 @@ ARG INSTALL_PHPREDIS=false
|
||||||
|
|
||||||
RUN if [ ${INSTALL_PHPREDIS} = true ]; then \
|
RUN if [ ${INSTALL_PHPREDIS} = true ]; then \
|
||||||
# Install Php Redis Extension
|
# Install Php Redis Extension
|
||||||
printf "\n" | pecl install -o -f redis \
|
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
|
||||||
&& rm -rf /tmp/pear \
|
pecl install -o -f redis-4.3.0; \
|
||||||
&& docker-php-ext-enable redis \
|
else \
|
||||||
|
pecl install -o -f redis; \
|
||||||
|
fi \
|
||||||
|
&& rm -rf /tmp/pear \
|
||||||
|
&& docker-php-ext-enable redis \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
|
|
Loading…
Reference in New Issue