Skip to content

Commit

Permalink
Merge pull request #2631 from bestlong/php-worker-imagick
Browse files Browse the repository at this point in the history
php-worker support imagick
  • Loading branch information
bestlong committed Jun 16, 2020
2 parents 1dd23a0 + d81f9f2 commit 6c942b4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions docker-compose.yml
Expand Up @@ -276,6 +276,7 @@ services:
- PHALCON_VERSION=${PHALCON_VERSION}
- INSTALL_BZ2=${PHP_WORKER_INSTALL_BZ2}
- INSTALL_GD=${PHP_WORKER_INSTALL_GD}
- INSTALL_IMAGEMAGICK=${PHP_WORKER_INSTALL_IMAGEMAGICK}
- INSTALL_GMP=${PHP_WORKER_INSTALL_GMP}
- INSTALL_PGSQL=${PHP_WORKER_INSTALL_PGSQL}
- INSTALL_BCMATH=${PHP_WORKER_INSTALL_BCMATH}
Expand Down
1 change: 1 addition & 0 deletions env-example
Expand Up @@ -242,6 +242,7 @@ PHP_FPM_PGID=1000

PHP_WORKER_INSTALL_BZ2=false
PHP_WORKER_INSTALL_GD=false
PHP_WORKER_INSTALL_IMAGEMAGICK=false
PHP_WORKER_INSTALL_GMP=false
PHP_WORKER_INSTALL_PGSQL=false
PHP_WORKER_INSTALL_BCMATH=false
Expand Down
8 changes: 8 additions & 0 deletions php-worker/Dockerfile
Expand Up @@ -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 \
Expand Down

0 comments on commit 6c942b4

Please sign in to comment.