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 \