Skip to content

Commit

Permalink
[FIX] gd config for official php images
Browse files Browse the repository at this point in the history
  • Loading branch information
Hans Höchtl committed Dec 17, 2019
1 parent 7a8107e commit 091c458
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 10 deletions.
4 changes: 3 additions & 1 deletion docker/php-official/5.6/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ RUN set -x \
libzip4 \
# Dev and headers
libjpeg62-turbo-dev \
libwebp-dev \
libfreetype6-dev \
libbz2-dev \
libicu-dev \
Expand All @@ -154,7 +155,7 @@ RUN set -x \
&& cp guetzli-master/bin/Release/guetzli /usr/local/bin/ \
&& rm -rf master.zip guetzli-master \
# Install extensions
&& docker-php-ext-configure gd --with-jpeg --with-freetype --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-configure ldap --with-libdir=lib/x86_64-linux-gnu/ \
&& PHP_OPENSSL=yes docker-php-ext-configure imap --with-kerberos --with-imap-ssl \
&& docker-php-ext-install \
Expand Down Expand Up @@ -210,6 +211,7 @@ RUN set -x \
libxslt1-dev \
zlib1g-dev \
libpng-dev \
libwebp-dev \
libpq-dev \
libzip-dev \
libvips-dev \
Expand Down
4 changes: 3 additions & 1 deletion docker/php-official/7.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ RUN set -x \
libzip4 \
# Dev and headers
libjpeg62-turbo-dev \
libwebp-dev \
libfreetype6-dev \
libbz2-dev \
libicu-dev \
Expand All @@ -154,7 +155,7 @@ RUN set -x \
&& cp guetzli-master/bin/Release/guetzli /usr/local/bin/ \
&& rm -rf master.zip guetzli-master \
# Install extensions
&& docker-php-ext-configure gd --with-jpeg --with-freetype --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-configure ldap --with-libdir=lib/x86_64-linux-gnu/ \
&& PHP_OPENSSL=yes docker-php-ext-configure imap --with-kerberos --with-imap-ssl \
&& docker-php-ext-install \
Expand Down Expand Up @@ -215,6 +216,7 @@ RUN set -x \
libxslt1-dev \
zlib1g-dev \
libpng-dev \
libwebp-dev \
libpq-dev \
libzip-dev \
libvips-dev \
Expand Down
4 changes: 3 additions & 1 deletion docker/php-official/7.1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ RUN set -x \
libzip4 \
# Dev and headers
libjpeg62-turbo-dev \
libwebp-dev \
libfreetype6-dev \
libbz2-dev \
libicu-dev \
Expand All @@ -154,7 +155,7 @@ RUN set -x \
&& cp guetzli-master/bin/Release/guetzli /usr/local/bin/ \
&& rm -rf master.zip guetzli-master \
# Install extensions
&& docker-php-ext-configure gd --with-jpeg --with-freetype --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-configure ldap --with-libdir=lib/x86_64-linux-gnu/ \
&& PHP_OPENSSL=yes docker-php-ext-configure imap --with-kerberos --with-imap-ssl \
&& docker-php-ext-install \
Expand Down Expand Up @@ -215,6 +216,7 @@ RUN set -x \
libxslt1-dev \
zlib1g-dev \
libpng-dev \
libwebp-dev \
libpq-dev \
libzip-dev \
libvips-dev \
Expand Down
4 changes: 3 additions & 1 deletion docker/php-official/7.2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ RUN set -x \
libzip4 \
# Dev and headers
libjpeg62-turbo-dev \
libwebp-dev \
libfreetype6-dev \
libbz2-dev \
libicu-dev \
Expand All @@ -154,7 +155,7 @@ RUN set -x \
&& cp guetzli-master/bin/Release/guetzli /usr/local/bin/ \
&& rm -rf master.zip guetzli-master \
# Install extensions
&& docker-php-ext-configure gd --with-jpeg --with-freetype --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-configure ldap --with-libdir=lib/x86_64-linux-gnu/ \
&& PHP_OPENSSL=yes docker-php-ext-configure imap --with-kerberos --with-imap-ssl \
&& docker-php-ext-install \
Expand Down Expand Up @@ -214,6 +215,7 @@ RUN set -x \
libxslt1-dev \
zlib1g-dev \
libpng-dev \
libwebp-dev \
libpq-dev \
libzip-dev \
libvips-dev \
Expand Down
6 changes: 4 additions & 2 deletions docker/php-official/7.3/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ RUN mkdir -p \
&& "/baselayout/sbin/gosu" nobody true


FROM php:7.3-fpm-stretch
FROM php:7.3-fpm-buster

LABEL [email protected] \
vendor=WebDevOps.io \
Expand Down Expand Up @@ -128,6 +128,7 @@ RUN set -x \
libzip4 \
# Dev and headers
libjpeg62-turbo-dev \
libwebp-dev \
libfreetype6-dev \
libbz2-dev \
libicu-dev \
Expand All @@ -154,7 +155,7 @@ RUN set -x \
&& cp guetzli-master/bin/Release/guetzli /usr/local/bin/ \
&& rm -rf master.zip guetzli-master \
# Install extensions
&& docker-php-ext-configure gd --with-jpeg --with-freetype --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-configure ldap --with-libdir=lib/x86_64-linux-gnu/ \
&& PHP_OPENSSL=yes docker-php-ext-configure imap --with-kerberos --with-imap-ssl \
&& docker-php-ext-install \
Expand Down Expand Up @@ -218,6 +219,7 @@ RUN set -x \
libxslt1-dev \
zlib1g-dev \
libpng-dev \
libwebp-dev \
libpq-dev \
libzip-dev \
libvips-dev \
Expand Down
4 changes: 2 additions & 2 deletions docker/php-official/7.3/Dockerfile.jinja2
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{ baselayout.dockerStage() }}

{{ docker.fromOfficial("php", "7.3-fpm-stretch") }}
{{ docker.fromOfficial("php", "7.3-fpm-buster") }}

{{ docker.version() }}

Expand All @@ -14,7 +14,7 @@
{{ docker.copy('conf/', '/opt/docker/') }}

RUN set -x \
{{ bootstrap.debian('stretch') }}
{{ bootstrap.debian('buster') }}

RUN set -x \
{{ base.debian() }} \
Expand Down
4 changes: 3 additions & 1 deletion docker/php-official/7.4/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ RUN set -x \
libzip4 \
# Dev and headers
libjpeg62-turbo-dev \
libwebp-dev \
libfreetype6-dev \
libbz2-dev \
libicu-dev \
Expand All @@ -154,7 +155,7 @@ RUN set -x \
&& cp guetzli-master/bin/Release/guetzli /usr/local/bin/ \
&& rm -rf master.zip guetzli-master \
# Install extensions
&& docker-php-ext-configure gd --with-jpeg --with-freetype --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-configure gd --with-jpeg --with-freetype --with-webp \
&& docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ \
&& PHP_OPENSSL=yes docker-php-ext-configure imap --with-kerberos --with-imap-ssl \
&& docker-php-ext-install \
Expand Down Expand Up @@ -217,6 +218,7 @@ RUN set -x \
libxslt1-dev \
zlib1g-dev \
libpng-dev \
libwebp-dev \
libpq-dev \
libzip-dev \
libvips-dev \
Expand Down
8 changes: 7 additions & 1 deletion template/Dockerfile/images/php.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
libzip4 \
# Dev and headers
libjpeg62-turbo-dev \
libwebp-dev \
libfreetype6-dev \
libbz2-dev \
libicu-dev \
Expand All @@ -55,7 +56,11 @@
&& cp guetzli-master/bin/Release/guetzli /usr/local/bin/ \
&& rm -rf master.zip guetzli-master \
# Install extensions
&& docker-php-ext-configure gd --with-jpeg --with-freetype --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
{%- if version != '7.4' %}
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ --with-webp-dir=/usr/include/ \
{%- else %}
&& docker-php-ext-configure gd --with-jpeg --with-freetype --with-webp \
{%- endif %}
&& docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ \
&& PHP_OPENSSL=yes docker-php-ext-configure imap --with-kerberos --with-imap-ssl \
&& docker-php-ext-install \
Expand Down Expand Up @@ -143,6 +148,7 @@
libxslt1-dev \
zlib1g-dev \
libpng-dev \
libwebp-dev \
libpq-dev \
libzip-dev \
libvips-dev \
Expand Down

0 comments on commit 091c458

Please sign in to comment.