summaryrefslogtreecommitdiffstats
path: root/php-7.4-opt/build.Dockerfile
diff options
context:
space:
mode:
authorlookshe <github@lookshe.org>2021-03-07 23:10:31 +0100
committerlookshe <github@lookshe.org>2021-03-07 23:10:31 +0100
commit2f96bcbf9e5d1450a1d9cc20aeca458aaaa4bb36 (patch)
treea4c1a8cb40e4fc6c5ea78ed3a6030572e343c71f /php-7.4-opt/build.Dockerfile
parentc7242e8a4444c771c891a18289d17ff72dfa9762 (diff)
add redis module
Diffstat (limited to 'php-7.4-opt/build.Dockerfile')
-rw-r--r--php-7.4-opt/build.Dockerfile12
1 files changed, 12 insertions, 0 deletions
diff --git a/php-7.4-opt/build.Dockerfile b/php-7.4-opt/build.Dockerfile
index 694cf0c..dc125d5 100644
--- a/php-7.4-opt/build.Dockerfile
+++ b/php-7.4-opt/build.Dockerfile
@@ -189,4 +189,16 @@ RUN cd /php-7.4.12/ext/php-memcached-3.1.5 \
&& 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
+RUN cd /php-7.4.12/ext \
+ && wget https://github.com/phpredis/phpredis/archive/5.3.3.tar.gz \
+ && tar xzf 5.3.3.tar.gz \
+ && cd phpredis-5.3.3 \
+ && $MAIN_PREFIX/bin/phpize \
+ && ./configure --with-php-config=$MAIN_PREFIX/bin/php-config \
+ && make
+RUN cd /php-7.4.12/ext/phpredis-5.3.3 \
+ && mkdir -p $MAIN_PREFIX_NO_ROOT/etc/conf.d \
+ && echo extension=redis.so > $MAIN_PREFIX_NO_ROOT/etc/conf.d/redis.ini \
+ && echo $MAIN_PREFIX_NO_ROOT/etc/conf.d/redis.ini >> files_to_add \
+ && checkinstall -y --pkgname $PACKAGE_NAME-redis --include files_to_add