From d75a43c615911f837ae155f4efa083bcd6e29527 Mon Sep 17 00:00:00 2001 From: Eric Pfeiffer Date: Sat, 16 Jul 2016 13:07:56 -0500 Subject: [PATCH] Update Dockerfile-70 fixes memcached extension not installing --- php-fpm/Dockerfile-70 | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/php-fpm/Dockerfile-70 b/php-fpm/Dockerfile-70 index 34356bed..b6df086d 100644 --- a/php-fpm/Dockerfile-70 +++ b/php-fpm/Dockerfile-70 @@ -37,11 +37,18 @@ RUN docker-php-ext-install \ # Install Memcached for php 7 RUN curl -L -o /tmp/memcached.tar.gz "https://github.com/php-memcached-dev/php-memcached/archive/php7.tar.gz" \ - && mkdir -p /usr/src/php/ext/memcached \ - && tar -C /usr/src/php/ext/memcached -zxvf /tmp/memcached.tar.gz --strip 1 \ - && docker-php-ext-configure memcached \ - && docker-php-ext-install memcached \ - && rm /tmp/memcached.tar.gz + && mkdir -p memcached \ + && tar -C memcached -zxvf /tmp/memcached.tar.gz --strip 1 \ + && ( \ + cd memcached \ + && phpize \ + && ./configure \ + && make -j$(nproc) \ + && make install \ + ) \ + && rm -r memcached \ + && rm /tmp/memcached.tar.gz \ + && docker-php-ext-enable memcached # Install xdebug RUN pecl install xdebug \