Skip to content

Commit

Permalink
Enable WEBP support in PHP's gd in debian and alpine containers (#785)
Browse files Browse the repository at this point in the history
Signed-off-by: Flow86 <656249+Flow86@users.noreply.github.com>
  • Loading branch information
Flow86 authored and J0WI committed Jun 27, 2019
1 parent 3f40b69 commit f5665e1
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 11 deletions.
3 changes: 2 additions & 1 deletion 14.0/apache/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@ RUN set -ex; \
libpq-dev \
libxml2-dev \
libmagickwand-dev \
libwebp-dev \
; \
\
debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
docker-php-ext-configure gd --with-freetype-dir=/usr --with-png-dir=/usr --with-jpeg-dir=/usr; \
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 ldap --with-libdir="lib/$debMultiarch"; \
docker-php-ext-install \
exif \
Expand Down
3 changes: 2 additions & 1 deletion 14.0/fpm-alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ RUN set -ex; \
pcre-dev \
postgresql-dev \
imagemagick-dev \
libwebp-dev \
; \
\
docker-php-ext-configure gd --with-freetype-dir=/usr --with-png-dir=/usr --with-jpeg-dir=/usr; \
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 ldap; \
docker-php-ext-install \
exif \
Expand Down
3 changes: 2 additions & 1 deletion 14.0/fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@ RUN set -ex; \
libpq-dev \
libxml2-dev \
libmagickwand-dev \
libwebp-dev \
; \
\
debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
docker-php-ext-configure gd --with-freetype-dir=/usr --with-png-dir=/usr --with-jpeg-dir=/usr; \
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 ldap --with-libdir="lib/$debMultiarch"; \
docker-php-ext-install \
exif \
Expand Down
3 changes: 2 additions & 1 deletion 15.0/apache/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,11 @@ RUN set -ex; \
libxml2-dev \
libmagickwand-dev \
libzip-dev \
libwebp-dev \
; \
\
debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
docker-php-ext-configure gd --with-freetype-dir=/usr --with-png-dir=/usr --with-jpeg-dir=/usr; \
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 ldap --with-libdir="lib/$debMultiarch"; \
docker-php-ext-install \
exif \
Expand Down
3 changes: 2 additions & 1 deletion 15.0/fpm-alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ RUN set -ex; \
pcre-dev \
postgresql-dev \
imagemagick-dev \
libwebp-dev \
; \
\
docker-php-ext-configure gd --with-freetype-dir=/usr --with-png-dir=/usr --with-jpeg-dir=/usr; \
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 ldap; \
docker-php-ext-install \
exif \
Expand Down
3 changes: 2 additions & 1 deletion 15.0/fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,11 @@ RUN set -ex; \
libxml2-dev \
libmagickwand-dev \
libzip-dev \
libwebp-dev \
; \
\
debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
docker-php-ext-configure gd --with-freetype-dir=/usr --with-png-dir=/usr --with-jpeg-dir=/usr; \
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 ldap --with-libdir="lib/$debMultiarch"; \
docker-php-ext-install \
exif \
Expand Down
3 changes: 2 additions & 1 deletion 16.0/apache/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,11 @@ RUN set -ex; \
libxml2-dev \
libmagickwand-dev \
libzip-dev \
libwebp-dev \
; \
\
debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
docker-php-ext-configure gd --with-freetype-dir=/usr --with-png-dir=/usr --with-jpeg-dir=/usr; \
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 ldap --with-libdir="lib/$debMultiarch"; \
docker-php-ext-install \
exif \
Expand Down
3 changes: 2 additions & 1 deletion 16.0/fpm-alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ RUN set -ex; \
pcre-dev \
postgresql-dev \
imagemagick-dev \
libwebp-dev \
; \
\
docker-php-ext-configure gd --with-freetype-dir=/usr --with-png-dir=/usr --with-jpeg-dir=/usr; \
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 ldap; \
docker-php-ext-install \
exif \
Expand Down
3 changes: 2 additions & 1 deletion 16.0/fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,11 @@ RUN set -ex; \
libxml2-dev \
libmagickwand-dev \
libzip-dev \
libwebp-dev \
; \
\
debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
docker-php-ext-configure gd --with-freetype-dir=/usr --with-png-dir=/usr --with-jpeg-dir=/usr; \
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 ldap --with-libdir="lib/$debMultiarch"; \
docker-php-ext-install \
exif \
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile-alpine.template
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ RUN set -ex; \
pcre-dev \
postgresql-dev \
imagemagick-dev \
libwebp-dev \
; \
\
docker-php-ext-configure gd --with-freetype-dir=/usr --with-png-dir=/usr --with-jpeg-dir=/usr; \
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 ldap; \
docker-php-ext-install \
exif \
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile-debian.template
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@ RUN set -ex; \
libxml2-dev \
libmagickwand-dev \
libzip-dev \
libwebp-dev \
; \
\
debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
docker-php-ext-configure gd --with-freetype-dir=/usr --with-png-dir=/usr --with-jpeg-dir=/usr; \
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 ldap --with-libdir="lib/$debMultiarch"; \
docker-php-ext-install \
exif \
Expand Down

0 comments on commit f5665e1

Please sign in to comment.