summaryrefslogtreecommitdiffstats
path: root/php-7.4-opt/build.Dockerfile
diff options
context:
space:
mode:
authorlookshe <github@lookshe.org>2020-12-29 23:51:21 +0100
committerlookshe <github@lookshe.org>2020-12-29 23:51:21 +0100
commit5524b3dc0ce997db20d5679ff02c3b9ebe197454 (patch)
treef739dc03bb81c1df66b02034744d2c04a6d19e05 /php-7.4-opt/build.Dockerfile
parent8bcca628c5a073894f7755fea30eeec27cb7ca00 (diff)
add memcache and rebuild
Diffstat (limited to 'php-7.4-opt/build.Dockerfile')
-rw-r--r--php-7.4-opt/build.Dockerfile15
1 files changed, 14 insertions, 1 deletions
diff --git a/php-7.4-opt/build.Dockerfile b/php-7.4-opt/build.Dockerfile
index 612b8cf..694cf0c 100644
--- a/php-7.4-opt/build.Dockerfile
+++ b/php-7.4-opt/build.Dockerfile
@@ -32,7 +32,8 @@ RUN apt-get update \
libtidy-dev \
libgd2-xpm-dev \
libmagickwand-dev \
- libmagickcore-dev
+ libmagickcore-dev \
+ libmemcached-dev
RUN wget https://cmake.org/files/v2.8/cmake-2.8.12.1.tar.gz
RUN tar xzf cmake-2.8.12.1.tar.gz
RUN cd cmake-2.8.12.1 \
@@ -176,4 +177,16 @@ RUN cd /php-7.4.12/ext/apcu-5.1.19 \
&& echo extension=apcu.so > $MAIN_PREFIX_NO_ROOT/etc/conf.d/apcu.ini \
&& echo $MAIN_PREFIX_NO_ROOT/etc/conf.d/apcu.ini >> files_to_add \
&& checkinstall -y --pkgname $PACKAGE_NAME-apcu --include files_to_add
+RUN cd /php-7.4.12/ext \
+ && wget https://github.com/php-memcached-dev/php-memcached/archive/v3.1.5.tar.gz \
+ && tar xzf v3.1.5.tar.gz \
+ && cd php-memcached-3.1.5 \
+ && $MAIN_PREFIX/bin/phpize \
+ && ./configure --with-php-config=$MAIN_PREFIX/bin/php-config --disable-memcached-sasl \
+ && make
+RUN cd /php-7.4.12/ext/php-memcached-3.1.5 \
+ && mkdir -p $MAIN_PREFIX_NO_ROOT/etc/conf.d \
+ && echo extension=memcached.so > $MAIN_PREFIX_NO_ROOT/etc/conf.d/memcached.ini \
+ && echo $MAIN_PREFIX_NO_ROOT/etc/conf.d/memcached.ini >> files_to_add \
+ && checkinstall -y --pkgname $PACKAGE_NAME-memcached --include files_to_add