From d35b6f3437a6b342048e10e08b5a2a88fc18479d Mon Sep 17 00:00:00 2001 From: Hugo Sales Date: Sat, 11 Jul 2020 22:41:52 +0000 Subject: [PATCH] [DOCKER] Add msgpack and redis extensions to docker image --- docker/php/Dockerfile | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/docker/php/Dockerfile b/docker/php/Dockerfile index b02b07fab8..b9bc9b646a 100644 --- a/docker/php/Dockerfile +++ b/docker/php/Dockerfile @@ -6,17 +6,16 @@ RUN apk update && apk add git gettext-dev icu-dev zlib-dev libpng-dev gmp-dev \ ARG exts=" bcmath exif gd gettext gmp intl mysqli opcache pdo pdo_mysql mysqli pdo_pgsql pgsql" RUN apk add --virtual .phpize-deps $PHPIZE_DEPS \ - && cd /tmp \ - && git clone https://github.com/php-ds/ext-ds \ - && cd ext-ds \ - && phpize \ - && ./configure \ - && make \ - && make install \ + && cd /tmp && git clone https://github.com/php-ds/ext-ds && cd ext-ds \ + && phpize && ./configure && make && make install \ + && cd /tmp && git clone https://github.com/msgpack/msgpack-php && cd msgpack-php \ + && phpize && ./configure && make && make install \ + && cd /tmp && git clone https://github.com/phpredis/phpredis && cd phpredis \ + && phpize && ./configure --enable-redis-msgpack --enable-redis-lzf && make && make install \ && rm -rf /usr/share/php7 \ && rm -rf /tmp/* \ && apk del .phpize-deps > /dev/null -RUN docker-php-ext-install ${exts} && docker-php-ext-enable ds +RUN docker-php-ext-install ${exts} && docker-php-ext-enable ds msgpack redis WORKDIR /var/www/social