php-worker support imagick

This commit is contained in:
Shao Yu Lung
2020-06-17 00:30:07 +08:00
parent 1dd23a01a5
commit d81f9f2779
3 changed files with 10 additions and 0 deletions

View File

@ -66,6 +66,14 @@ RUN if [ ${INSTALL_GD} = true ]; then \
docker-php-ext-install gd \
;fi
#Install ImageMagick:
ARG INSTALL_IMAGEMAGICK=false
RUN if [ ${INSTALL_IMAGEMAGICK} = true ]; then \
apk add --update imagemagick-dev imagemagick; \
pecl install imagick; \
docker-php-ext-enable imagick \
;fi
#Install GMP package:
ARG INSTALL_GMP=false
RUN if [ ${INSTALL_GMP} = true ]; then \