Skip to content

Commit d8687a1

Browse files
committed
add memcache
1 parent 11b237f commit d8687a1

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Dockerfiles/php-fpm/Dockerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,24 @@ RUN set -xe; \
3838
docker-php-ext-enable xdebug
3939

4040

41+
42+
43+
# Install needed php extensions: memcache
44+
RUN curl -fsSL 'https://github.com/websupport-sk/pecl-memcache/archive/NON_BLOCKING_IO_php7.zip' -o memcache.zip \
45+
&& unzip memcache.zip \
46+
&& rm memcache.zip \
47+
&& ( \
48+
cd pecl-memcache-NON_BLOCKING_IO_php7 \
49+
&& phpize \
50+
&& ./configure --enable-memcache \
51+
&& make \
52+
&& make install \
53+
) \
54+
&& rm -r pecl-memcache-NON_BLOCKING_IO_php7 \
55+
&& docker-php-ext-enable memcache
56+
57+
58+
4159
# install zip extensions
4260
# ps. next lines are here becase there is no auto build on docker
4361
RUN apt-get install -y --no-install-recommends \

0 commit comments

Comments
 (0)