Skip to content

Commit

Permalink
implement edbizarro#92
Browse files Browse the repository at this point in the history
  • Loading branch information
edbizarro committed Sep 11, 2020
1 parent 53f9b69 commit f8ee01c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions php/scripts/extensions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@ export runtimeDeps=" \
librabbitmq-dev \
libssl-dev \
libuv1-dev \
libwebp-dev \
libxml2-dev \
libzip-dev \
libxslt1-dev \
libzip-dev \
multiarch-support \
"
else
Expand All @@ -75,6 +76,7 @@ export runtimeDeps=" \
libpq-dev \
librabbitmq-dev \
libuv1-dev \
libwebp-dev \
libxml2-dev \
mcrypt \
multiarch-support \
Expand All @@ -88,15 +90,15 @@ apt-get update \
&& docker-php-ext-install -j$(nproc) $extensions

if [[ $PHP_VERSION == "7.4" ]]; then
docker-php-ext-configure gd --with-freetype --with-jpeg \
docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp \
&& docker-php-ext-install -j$(nproc) gd \
&& docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ \
&& docker-php-ext-install -j$(nproc) ldap \
&& PHP_OPENSSL=yes docker-php-ext-configure imap --with-kerberos --with-imap-ssl \
&& docker-php-ext-install -j$(nproc) imap \
&& docker-php-source delete
else
docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ --with-webp-dir=/usr/include/ \
&& docker-php-ext-install -j$(nproc) gd \
&& docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ \
&& docker-php-ext-install -j$(nproc) ldap \
Expand Down

0 comments on commit f8ee01c

Please sign in to comment.