Update Dockerfile-70

fixes memcached extension not installing
This commit is contained in:
Eric Pfeiffer 2016-07-16 13:07:56 -05:00 committed by GitHub
parent 06337e6024
commit d75a43c615

View File

@ -37,11 +37,18 @@ RUN docker-php-ext-install \
# Install Memcached for php 7 # 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" \ 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 \ && mkdir -p memcached \
&& tar -C /usr/src/php/ext/memcached -zxvf /tmp/memcached.tar.gz --strip 1 \ && tar -C memcached -zxvf /tmp/memcached.tar.gz --strip 1 \
&& docker-php-ext-configure memcached \ && ( \
&& docker-php-ext-install memcached \ cd memcached \
&& rm /tmp/memcached.tar.gz && phpize \
&& ./configure \
&& make -j$(nproc) \
&& make install \
) \
&& rm -r memcached \
&& rm /tmp/memcached.tar.gz \
&& docker-php-ext-enable memcached
# Install xdebug # Install xdebug
RUN pecl install xdebug \ RUN pecl install xdebug \