From fdba7e7c09b7829077bf260dca24fbbe748e4105 Mon Sep 17 00:00:00 2001 From: matt Date: Sat, 14 May 2016 17:21:36 +0100 Subject: [PATCH] add memcached support for PHP 5.5 & 5.6 --- php/Dockerfile-php-55 | 5 +++++ php/Dockerfile-php-56 | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/php/Dockerfile-php-55 b/php/Dockerfile-php-55 index b8f69b2..4c2a773 100644 --- a/php/Dockerfile-php-55 +++ b/php/Dockerfile-php-55 @@ -7,6 +7,7 @@ ADD ./laravel.pool.conf /usr/local/etc/php-fpm.d/ RUN apt-get update && apt-get install \ libpq-dev -y \ + libmemcached-dev \ curl # Install extensions using the helper script provided by the base image @@ -14,6 +15,10 @@ RUN docker-php-ext-install \ pdo_mysql \ pdo_pgsql +#Install memcached +RUN pecl install memcached \ + && docker-php-ext-enable memcached + RUN usermod -u 1000 www-data WORKDIR /var/www/laravel diff --git a/php/Dockerfile-php-56 b/php/Dockerfile-php-56 index b43fe41..baa26a7 100644 --- a/php/Dockerfile-php-56 +++ b/php/Dockerfile-php-56 @@ -7,6 +7,7 @@ ADD ./laravel.pool.conf /usr/local/etc/php-fpm.d/ RUN apt-get update && apt-get install \ libpq-dev -y \ + libmemcached-dev \ curl # Install extensions using the helper script provided by the base image @@ -14,6 +15,10 @@ RUN docker-php-ext-install \ pdo_mysql \ pdo_pgsql +#Install memcached +RUN pecl install memcached \ + && docker-php-ext-enable memcached + RUN usermod -u 1000 www-data WORKDIR /var/www/laravel