From f1cd4bb0e2222b19029052bf232f6348f048f684 Mon Sep 17 00:00:00 2001 From: g0ld3lux Date: Fri, 13 Jan 2017 08:06:08 +0800 Subject: [PATCH] added phpredis in dockerfile70 (#546) --- php-fpm/Dockerfile-70 | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/php-fpm/Dockerfile-70 b/php-fpm/Dockerfile-70 index a00d627..c389efc 100644 --- a/php-fpm/Dockerfile-70 +++ b/php-fpm/Dockerfile-70 @@ -60,6 +60,17 @@ RUN if [ ${INSTALL_XDEBUG} = true ]; then \ docker-php-ext-enable xdebug \ ;fi +##################################### +# PHP REDIS EXTENSION FOR PHP 7.0 +##################################### +ARG INSTALL_PHPREDIS=false +RUN if [ ${INSTALL_PHPREDIS} = true ]; then \ + # Install Php Redis Extension + RUN pecl install -o -f redis \ + && rm -rf /tmp/pear \ + && docker-php-ext-enable redis +;fi + # Copy xdebug configration for remote debugging COPY ./xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini