diff --git a/docker-compose.yml b/docker-compose.yml index 166f7f3..1d1f543 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -74,6 +74,7 @@ services: - INSTALL_MSSQL=${PHP_FPM_INSTALL_MSSQL} - INSTALL_ZIP_ARCHIVE=${PHP_FPM_INSTALL_ZIP_ARCHIVE} - INSTALL_BCMATH=${PHP_FPM_INSTALL_BCMATH} + - INSTALL_GMP=${PHP_FPM_INSTALL_GMP} - INSTALL_PHPREDIS=${PHP_FPM_INSTALL_PHPREDIS} - INSTALL_MEMCACHED=${PHP_FPM_INSTALL_MEMCACHED} - INSTALL_OPCACHE=${PHP_FPM_INSTALL_OPCACHE} diff --git a/env-example b/env-example index 5d5d73b..0eb282d 100644 --- a/env-example +++ b/env-example @@ -101,6 +101,7 @@ PHP_FPM_INSTALL_MSSQL=false PHP_FPM_INSTALL_SOAP=false PHP_FPM_INSTALL_ZIP_ARCHIVE=false PHP_FPM_INSTALL_BCMATH=false +PHP_FPM_INSTALL_GMP=false PHP_FPM_INSTALL_PHPREDIS=false PHP_FPM_INSTALL_MEMCACHED=false PHP_FPM_INSTALL_OPCACHE=false diff --git a/php-fpm/Dockerfile-56 b/php-fpm/Dockerfile-56 index 4678d8e..94726cc 100644 --- a/php-fpm/Dockerfile-56 +++ b/php-fpm/Dockerfile-56 @@ -156,6 +156,18 @@ RUN if [ ${INSTALL_BCMATH} = true ]; then \ docker-php-ext-install bcmath \ ;fi +##################################### +# GMP (GNU Multiple Precision): +##################################### + +ARG INSTALL_GMP=false +RUN if [ ${INSTALL_GMP} = true ]; then \ + # Install the GMP extension + apt-get update -yqq && \ + apt-get install -y libgmp-dev && \ + docker-php-ext-install gmp \ +;fi + ##################################### # PHP Memcached: ##################################### diff --git a/php-fpm/Dockerfile-70 b/php-fpm/Dockerfile-70 index 8a8bbd4..aba8ce1 100644 --- a/php-fpm/Dockerfile-70 +++ b/php-fpm/Dockerfile-70 @@ -153,6 +153,18 @@ RUN if [ ${INSTALL_BCMATH} = true ]; then \ docker-php-ext-install bcmath \ ;fi +##################################### +# GMP (GNU Multiple Precision): +##################################### + +ARG INSTALL_GMP=false +RUN if [ ${INSTALL_GMP} = true ]; then \ + # Install the GMP extension + apt-get update -yqq && \ + apt-get install -y libgmp-dev && \ + docker-php-ext-install gmp \ +;fi + ##################################### # PHP Memcached: ##################################### diff --git a/php-fpm/Dockerfile-71 b/php-fpm/Dockerfile-71 index 0b31f6d..2a164fb 100644 --- a/php-fpm/Dockerfile-71 +++ b/php-fpm/Dockerfile-71 @@ -153,6 +153,18 @@ RUN if [ ${INSTALL_BCMATH} = true ]; then \ docker-php-ext-install bcmath \ ;fi +##################################### +# GMP (GNU Multiple Precision): +##################################### + +ARG INSTALL_GMP=false +RUN if [ ${INSTALL_GMP} = true ]; then \ + # Install the GMP extension + apt-get update -yqq && \ + apt-get install -y libgmp-dev && \ + docker-php-ext-install gmp \ +;fi + ##################################### # PHP Memcached: #####################################