forked from GNUsocial/gnu-social
[DOCKER] Updated dockerfile to add memcached
This commit is contained in:
parent
51d1ea4f8f
commit
5ec23f2200
@ -4,5 +4,14 @@ RUN apk update && apk add gettext-dev icu-dev zlib-dev libpng-dev gmp-dev postgr
|
||||
|
||||
ARG exts=" bcmath exif gd gettext gmp intl mysqli opcache pdo pdo_pgsql pgsql"
|
||||
|
||||
RUN docker-php-ext-install ${exts} \
|
||||
&& docker-php-ext-enable ${exts}
|
||||
ARG MEMCACHED_DEPS="zlib-dev libmemcached-dev cyrus-sasl-dev"
|
||||
RUN apk add libmemcached-libs zlib
|
||||
RUN apk add --virtual .phpize-deps $PHPIZE_DEPS \
|
||||
&& apk add --virtual .memcached-deps $MEMCACHED_DEPS \
|
||||
&& pecl install memcached \
|
||||
&& echo "extension=memcached.so" > /usr/local/etc/php/conf.d/20_memcached.ini \
|
||||
&& rm -rf /usr/share/php7 \
|
||||
&& rm -rf /tmp/* \
|
||||
&& apk del .memcached-deps .phpize-deps
|
||||
|
||||
RUN docker-php-ext-install ${exts}
|
||||
|
Loading…
Reference in New Issue
Block a user