Skip to content
This repository has been archived by the owner on Mar 13, 2019. It is now read-only.

gmp extension support #105

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ RUN apt-get update && \
libbz2-dev \
libxslt-dev \
libldap2-dev \
libgmp-dev \
php-pear \
curl \
git \
Expand All @@ -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

Expand Down
4 changes: 4 additions & 0 deletions base/php5/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ RUN apt-get update && \
libbz2-dev \
libxslt-dev \
libldap2-dev \
libgmp-dev \
php-pear \
curl \
git \
Expand All @@ -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

Expand Down