Navigation Menu

Skip to content

Commit

Permalink
Sync up docker file for PHP 7.0 with 7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
andrerom committed Apr 19, 2017
1 parent c971856 commit 66929a3
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions php/Dockerfile-7.0
Expand Up @@ -23,8 +23,7 @@ RUN apt-get update -q -y \
libpng12-0 \
libicu52 \
libxslt1.1 \
libmemcached11 \
libmsgpack3 \
libmemcachedutil2 \
# git & unzip needed for composer, unless we document to use dev image for composer install
# unzip needed due to https://github.com/composer/composer/issues/4471
unzip \
Expand All @@ -42,7 +41,6 @@ RUN set -xe \
libicu-dev \
libxslt1-dev \
libmemcached-dev \
libmsgpack-dev \
" \
&& apt-get update && apt-get install -y --force-yes $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
# Extract php source and install missing extensions
Expand All @@ -63,15 +61,15 @@ RUN set -xe \
\
# Install msgpack (for more efficient serialization in redis/memcached)
&& pecl install msgpack \
&& echo "extension=msgpack.so" > ${PHP_INI_DIR}/conf.d/msgpack.ini \
&& docker-php-ext-enable msgpack \
\
# Install redis
&& pecl install redis \
&& echo "extension=redis.so" > ${PHP_INI_DIR}/conf.d/redis.ini \
&& docker-php-ext-enable redis \
\
# Install memcached (as we are on Debian 8 we have libmemcached 1.0.18 which is recommended)
&& echo no | pecl install memcached \
&& echo "extension=memcached.so" > ${PHP_INI_DIR}/conf.d/memcached.ini \
&& docker-php-ext-enable memcached \
\
# Delete source & builds deps so it does not hang around in layers taking up space
&& docker-php-source delete \
Expand Down

0 comments on commit 66929a3

Please sign in to comment.