From ce4d37265a04d5e3d3605b44f395a4757e691e1b Mon Sep 17 00:00:00 2001 From: Oleg Abrosimov Date: Fri, 23 Sep 2016 12:26:39 +0300 Subject: [PATCH] gmp extension support Note that alpine image is not affected --- base/Dockerfile | 4 ++++ base/php5/Dockerfile | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/base/Dockerfile b/base/Dockerfile index 1c318b0..3c7a9cc 100644 --- a/base/Dockerfile +++ b/base/Dockerfile @@ -13,6 +13,7 @@ RUN apt-get update && \ libbz2-dev \ libxslt-dev \ libldap2-dev \ + libgmp-dev \ php-pear \ curl \ git \ @@ -25,6 +26,9 @@ RUN apt-get update && \ RUN docker-php-ext-install bcmath mcrypt zip bz2 mbstring pcntl xsl \ && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \ && docker-php-ext-install gd \ + && ln -s /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h \ + && docker-php-ext-configure gmp --with-gmp=/usr/include/x86_64-linux-gnu \ + && docker-php-ext-install gmp \ && docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ \ && docker-php-ext-install ldap diff --git a/base/php5/Dockerfile b/base/php5/Dockerfile index c1a0c33..efce573 100644 --- a/base/php5/Dockerfile +++ b/base/php5/Dockerfile @@ -13,6 +13,7 @@ RUN apt-get update && \ libbz2-dev \ libxslt-dev \ libldap2-dev \ + libgmp-dev \ php-pear \ curl \ git \ @@ -25,6 +26,9 @@ RUN apt-get update && \ RUN docker-php-ext-install bcmath mcrypt zip bz2 mbstring pcntl xsl \ && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \ && docker-php-ext-install gd \ + && ln -s /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h \ + && docker-php-ext-configure gmp --with-gmp=/usr/include/x86_64-linux-gnu \ + && docker-php-ext-install gmp \ && docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ \ && docker-php-ext-install ldap