Skip to content

Commit

Permalink
Merge pull request #2953 from laradock/enchant
Browse files Browse the repository at this point in the history
feat(support enchant extension): php-fpm
  • Loading branch information
bestlong committed Apr 17, 2021
2 parents b3cdfd5 + 743942e commit ba71f06
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions .env.example
Expand Up @@ -215,6 +215,7 @@ PHP_FPM_INSTALL_IMAGE_OPTIMIZERS=true
PHP_FPM_INSTALL_PHPREDIS=true
PHP_FPM_INSTALL_MEMCACHED=false
PHP_FPM_INSTALL_BZ2=false
PHP_FPM_INSTALL_ENCHANT=false
PHP_FPM_INSTALL_GMP=false
PHP_FPM_INSTALL_GNUPG=false
PHP_FPM_INSTALL_XDEBUG=false
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Expand Up @@ -209,6 +209,7 @@ services:
- LARADOCK_PHP_VERSION=${PHP_VERSION}
- LARADOCK_PHALCON_VERSION=${PHALCON_VERSION}
- INSTALL_BZ2=${PHP_FPM_INSTALL_BZ2}
- INSTALL_ENCHANT=${PHP_FPM_INSTALL_ENCHANT}
- INSTALL_GMP=${PHP_FPM_INSTALL_GMP}
- INSTALL_GNUPG=${PHP_FPM_INSTALL_GNUPG}
- INSTALL_XDEBUG=${PHP_FPM_INSTALL_XDEBUG}
Expand Down
11 changes: 11 additions & 0 deletions php-fpm/Dockerfile
Expand Up @@ -83,6 +83,17 @@ RUN if [ ${INSTALL_BZ2} = true ]; then \
docker-php-ext-install bz2 \
;fi

###########################################################################
# Enchant:
###########################################################################

ARG INSTALL_ENCHANT=false
RUN if [ ${INSTALL_ENCHANT} = true ]; then \
apt-get install -yqq libenchant-dev; \
docker-php-ext-install enchant; \
php -m | grep -oiE '^enchant$'; \
fi

###########################################################################
# GMP (GNU Multiple Precision):
###########################################################################
Expand Down

0 comments on commit ba71f06

Please sign in to comment.