forked from GNUsocial/gnu-social
[DOCKER] Add msgpack and redis extensions to docker image
This commit is contained in:
parent
89ce298a3b
commit
155038a5c0
@ -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"
|
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 \
|
RUN apk add --virtual .phpize-deps $PHPIZE_DEPS \
|
||||||
&& cd /tmp \
|
&& cd /tmp && git clone https://github.com/php-ds/ext-ds && cd ext-ds \
|
||||||
&& git clone https://github.com/php-ds/ext-ds \
|
&& phpize && ./configure && make && make install \
|
||||||
&& cd ext-ds \
|
&& cd /tmp && git clone https://github.com/msgpack/msgpack-php && cd msgpack-php \
|
||||||
&& phpize \
|
&& phpize && ./configure && make && make install \
|
||||||
&& ./configure \
|
&& cd /tmp && git clone https://github.com/phpredis/phpredis && cd phpredis \
|
||||||
&& make \
|
&& phpize && ./configure --enable-redis-msgpack --enable-redis-lzf && make && make install \
|
||||||
&& make install \
|
|
||||||
&& rm -rf /usr/share/php7 \
|
&& rm -rf /usr/share/php7 \
|
||||||
&& rm -rf /tmp/* \
|
&& rm -rf /tmp/* \
|
||||||
&& apk del .phpize-deps > /dev/null
|
&& 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
|
WORKDIR /var/www/social
|
||||||
|
Loading…
Reference in New Issue
Block a user