File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,13 +5,23 @@ MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
55ADD ./laravel.ini /usr/local/etc/php/conf.d
66ADD ./laravel.pool.conf /usr/local/etc/php-fpm.d/
77
8- RUN apt-get update && apt-get install libpq-dev -y
8+ RUN apt-get update && apt-get install libpq-dev -y \
9+ curl \
10+ libmemcached-dev
911
1012# Install extensions using the helper script provided by the base image
1113RUN docker-php-ext-install \
1214 pdo_mysql \
1315 pdo_pgsql
1416
17+ # Installing memcached for php 7 is a bit trickier
18+ RUN curl -L -o /tmp/memcached.tar.gz "https://github.com/php-memcached-dev/php-memcached/archive/php7.tar.gz" \
19+ && mkdir -p /usr/src/php/ext/memcached \
20+ && tar -C /usr/src/php/ext/memcached -zxvf /tmp/memcached.tar.gz --strip 1 \
21+ && docker-php-ext-configure memcached \
22+ && docker-php-ext-install memcached \
23+ && rm /tmp/memcached.tar.gz
24+
1525RUN usermod -u 1000 www-data
1626
1727WORKDIR /var/www/laravel
You can’t perform that action at this time.
0 commit comments