add memcached support for PHP 5.5 & 5.6

This commit is contained in:
matt 2016-05-14 17:21:36 +01:00
parent 405067d4af
commit fdba7e7c09
2 changed files with 10 additions and 0 deletions

View File

@ -7,6 +7,7 @@ ADD ./laravel.pool.conf /usr/local/etc/php-fpm.d/
RUN apt-get update && apt-get install \ RUN apt-get update && apt-get install \
libpq-dev -y \ libpq-dev -y \
libmemcached-dev \
curl curl
# Install extensions using the helper script provided by the base image # Install extensions using the helper script provided by the base image
@ -14,6 +15,10 @@ RUN docker-php-ext-install \
pdo_mysql \ pdo_mysql \
pdo_pgsql pdo_pgsql
#Install memcached
RUN pecl install memcached \
&& docker-php-ext-enable memcached
RUN usermod -u 1000 www-data RUN usermod -u 1000 www-data
WORKDIR /var/www/laravel WORKDIR /var/www/laravel

View File

@ -7,6 +7,7 @@ ADD ./laravel.pool.conf /usr/local/etc/php-fpm.d/
RUN apt-get update && apt-get install \ RUN apt-get update && apt-get install \
libpq-dev -y \ libpq-dev -y \
libmemcached-dev \
curl curl
# Install extensions using the helper script provided by the base image # Install extensions using the helper script provided by the base image
@ -14,6 +15,10 @@ RUN docker-php-ext-install \
pdo_mysql \ pdo_mysql \
pdo_pgsql pdo_pgsql
#Install memcached
RUN pecl install memcached \
&& docker-php-ext-enable memcached
RUN usermod -u 1000 www-data RUN usermod -u 1000 www-data
WORKDIR /var/www/laravel WORKDIR /var/www/laravel