File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ services:
8282 - INSTALL_LDAP=${PHP_FPM_INSTALL_LDAP}
8383 - INSTALL_SWOOLE=${PHP_FPM_INSTALL_SWOOLE}
8484 - INSTALL_IMAGE_OPTIMIZERS=${PHP_FPM_INSTALL_IMAGE_OPTIMIZERS}
85+ - INSTALL_IMAGEMAGICK=${PHP_FPM_INSTALL_IMAGEMAGICK}
8586 dockerfile : " Dockerfile-${PHP_VERSION}"
8687 volumes_from :
8788 - applications
Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ PHP_FPM_INSTALL_GHOSTSCRIPT=false
7878PHP_FPM_INSTALL_LDAP=false
7979PHP_FPM_INSTALL_SWOOLE=false
8080PHP_FPM_INSTALL_IMAGE_OPTIMIZERS=false
81+ PHP_FPM_INSTALL_IMAGEMAGICK=false
8182
8283### NGINX ##############################################################################################################
8384
Original file line number Diff line number Diff line change @@ -276,7 +276,9 @@ USER root
276276ARG INSTALL_IMAGEMAGICK=false
277277ENV INSTALL_IMAGEMAGICK ${INSTALL_IMAGEMAGICK}
278278RUN if [ ${INSTALL_IMAGEMAGICK} = true ]; then \
279- apt-get install -y --force-yes imagemagick php-imagick && \
279+ apt-get update -y && \
280+ apt-get install -y libmagickwand-dev imagemagick && \
281+ pecl install imagick && \
280282 docker-php-ext-enable imagick \
281283;fi
282284
Original file line number Diff line number Diff line change @@ -300,7 +300,9 @@ USER root
300300ARG INSTALL_IMAGEMAGICK=false
301301ENV INSTALL_IMAGEMAGICK ${INSTALL_IMAGEMAGICK}
302302RUN if [ ${INSTALL_IMAGEMAGICK} = true ]; then \
303- apt-get install -y --force-yes imagemagick php-imagick && \
303+ apt-get update -y && \
304+ apt-get install -y libmagickwand-dev imagemagick && \
305+ pecl install imagick && \
304306 docker-php-ext-enable imagick \
305307;fi
306308
Original file line number Diff line number Diff line change @@ -307,7 +307,9 @@ USER root
307307ARG INSTALL_IMAGEMAGICK=false
308308ENV INSTALL_IMAGEMAGICK ${INSTALL_IMAGEMAGICK}
309309RUN if [ ${INSTALL_IMAGEMAGICK} = true ]; then \
310- apt-get install -y --force-yes imagemagick php-imagick && \
310+ apt-get update -y && \
311+ apt-get install -y libmagickwand-dev imagemagick && \
312+ pecl install imagick && \
311313 docker-php-ext-enable imagick \
312314;fi
313315
Original file line number Diff line number Diff line change @@ -503,7 +503,7 @@ USER root
503503ARG INSTALL_IMAGEMAGICK=false
504504ENV INSTALL_IMAGEMAGICK ${INSTALL_IMAGEMAGICK}
505505RUN if [ ${INSTALL_IMAGEMAGICK} = true ]; then \
506- apt-get install -y --force-yes imagemagick \
506+ apt-get install -y --force-yes imagemagick php-imagick \
507507;fi
508508
509509#
Original file line number Diff line number Diff line change @@ -584,7 +584,7 @@ USER root
584584ARG INSTALL_IMAGEMAGICK=false
585585ENV INSTALL_IMAGEMAGICK ${INSTALL_IMAGEMAGICK}
586586RUN if [ ${INSTALL_IMAGEMAGICK} = true ]; then \
587- apt-get install -y --force-yes imagemagick \
587+ apt-get install -y --force-yes imagemagick php-imagick \
588588;fi
589589
590590#
Original file line number Diff line number Diff line change @@ -589,7 +589,7 @@ USER root
589589ARG INSTALL_IMAGEMAGICK=false
590590ENV INSTALL_IMAGEMAGICK ${INSTALL_IMAGEMAGICK}
591591RUN if [ ${INSTALL_IMAGEMAGICK} = true ]; then \
592- apt-get install -y --force-yes imagemagick \
592+ apt-get install -y --force-yes imagemagick php-imagick \
593593;fi
594594
595595#
You can’t perform that action at this time.
0 commit comments