allowing php-worker to install gmp extension (#2152)

This commit is contained in:
Mateusz Qunabu
2019-05-29 02:54:20 +02:00
committed by Shao Yu-Lung (Allen)
parent 2dd64aef55
commit dba1594b05
3 changed files with 11 additions and 0 deletions

View File

@ -103,6 +103,14 @@ RUN if [ $INSTALL_GHOSTSCRIPT = true ]; then \
apk --update add ghostscript \
;fi
#Install GMP package:
ARG INSTALL_GMP=false
RUN if [ ${INSTALL_GMP} = true ]; then \
apk add --update --no-cache gmp gmp-dev \
&& docker-php-ext-install gmp \
;fi
RUN rm /var/cache/apk/* \
&& mkdir -p /var/www