add php extensions

This commit is contained in:
Matthieu Poletti 2020-11-22 22:04:02 +02:00
parent 6e5e872b8e
commit 88c0efeaab

View File

@ -21,10 +21,11 @@ ENV PHP_EXTENSIONS \
ENV PECL_EXTENSIONS \
redis
RUN apt-get install -y libzip libxslt curl zip unzip
RUN apt-get install -y curl zip unzip
RUN pecl install $PECL_EXTENSIONS \
&& docker-php-ext-install -j "$(nproc)" $PHP_EXTENSIONS \
&& docker-php-ext-enable $PECL_EXTENSIONS
&& docker-php-ext-enable $PECL_EXTENSIONS \
&& docker-php-source delete
COPY --from=caddy /config /config
COPY --from=caddy /data /data