diff options
author | Marcel Klehr <mklehr@gmx.net> | 2019-09-14 13:11:43 +0200 |
---|---|---|
committer | Marcel Klehr <mklehr@gmx.net> | 2019-10-26 23:41:08 +0200 |
commit | 7eb00b62aab4e123eec0b0a2d213396fb87c97c8 (patch) | |
tree | abed1467b0ed539a6d423bac38dba58b4516018d /16.0 | |
parent | a3ba284c78e575d21808d63edc229ca5a23a7554 (diff) |
Add gmp php extension
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to '16.0')
-rw-r--r-- | 16.0/apache/Dockerfile | 6 | ||||
-rw-r--r-- | 16.0/fpm-alpine/Dockerfile | 4 | ||||
-rw-r--r-- | 16.0/fpm/Dockerfile | 6 |
3 files changed, 13 insertions, 3 deletions
diff --git a/16.0/apache/Dockerfile b/16.0/apache/Dockerfile index 2e0f4baa..f831e5a4 100644 --- a/16.0/apache/Dockerfile +++ b/16.0/apache/Dockerfile @@ -37,10 +37,13 @@ RUN set -ex; \ libmagickwand-dev \ libzip-dev \ libwebp-dev \ + libgmp-dev \ ; \ \ debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \ + if [ ! -e /usr/include/gmp.h ]; then ln -s /usr/include/$debMultiarch/gmp.h /usr/include/gmp.h; fi;\ docker-php-ext-configure gd --with-freetype-dir=/usr --with-png-dir=/usr --with-jpeg-dir=/usr --with-webp-dir=/usr; \ + docker-php-ext-configure gmp --with-gmp="/usr/include/$debMultiarch"; \ docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; \ docker-php-ext-install -j "$(nproc)" \ exif \ @@ -52,11 +55,12 @@ RUN set -ex; \ pdo_mysql \ pdo_pgsql \ zip \ + gmp \ ; \ \ # pecl will claim success even if one install fails, so we need to perform each install separately pecl install APCu-5.1.17; \ - pecl install memcached-3.1.3; \ + pecl install memcached-3.1.4; \ pecl install redis-4.3.0; \ pecl install imagick-3.4.4; \ \ diff --git a/16.0/fpm-alpine/Dockerfile b/16.0/fpm-alpine/Dockerfile index 1dd03fa4..45aee706 100644 --- a/16.0/fpm-alpine/Dockerfile +++ b/16.0/fpm-alpine/Dockerfile @@ -32,6 +32,7 @@ RUN set -ex; \ postgresql-dev \ imagemagick-dev \ libwebp-dev \ + gmp-dev \ ; \ \ docker-php-ext-configure gd --with-freetype-dir=/usr --with-png-dir=/usr --with-jpeg-dir=/usr --with-webp-dir=/usr; \ @@ -46,11 +47,12 @@ RUN set -ex; \ pdo_mysql \ pdo_pgsql \ zip \ + gmp \ ; \ \ # pecl will claim success even if one install fails, so we need to perform each install separately pecl install APCu-5.1.17; \ - pecl install memcached-3.1.3; \ + pecl install memcached-3.1.4; \ pecl install redis-4.3.0; \ pecl install imagick-3.4.4; \ \ diff --git a/16.0/fpm/Dockerfile b/16.0/fpm/Dockerfile index 4b4f0d97..e3c5117f 100644 --- a/16.0/fpm/Dockerfile +++ b/16.0/fpm/Dockerfile @@ -37,10 +37,13 @@ RUN set -ex; \ libmagickwand-dev \ libzip-dev \ libwebp-dev \ + libgmp-dev \ ; \ \ debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \ + if [ ! -e /usr/include/gmp.h ]; then ln -s /usr/include/$debMultiarch/gmp.h /usr/include/gmp.h; fi;\ docker-php-ext-configure gd --with-freetype-dir=/usr --with-png-dir=/usr --with-jpeg-dir=/usr --with-webp-dir=/usr; \ + docker-php-ext-configure gmp --with-gmp="/usr/include/$debMultiarch"; \ docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; \ docker-php-ext-install -j "$(nproc)" \ exif \ @@ -52,11 +55,12 @@ RUN set -ex; \ pdo_mysql \ pdo_pgsql \ zip \ + gmp \ ; \ \ # pecl will claim success even if one install fails, so we need to perform each install separately pecl install APCu-5.1.17; \ - pecl install memcached-3.1.3; \ + pecl install memcached-3.1.4; \ pecl install redis-4.3.0; \ pecl install imagick-3.4.4; \ \ |