mirror of
https://github.com/nextcloud/docker.git
synced 2024-12-26 11:06:14 +01:00
Enable WEBP support in PHP's gd in debian and alpine containers (#785)
Signed-off-by: Flow86 <656249+Flow86@users.noreply.github.com>
This commit is contained in:
parent
3f40b69c54
commit
f5665e1482
11 changed files with 22 additions and 11 deletions
|
@ -35,10 +35,11 @@ RUN set -ex; \
|
||||||
libpq-dev \
|
libpq-dev \
|
||||||
libxml2-dev \
|
libxml2-dev \
|
||||||
libmagickwand-dev \
|
libmagickwand-dev \
|
||||||
|
libwebp-dev \
|
||||||
; \
|
; \
|
||||||
\
|
\
|
||||||
debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
|
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-configure ldap --with-libdir="lib/$debMultiarch"; \
|
||||||
docker-php-ext-install \
|
docker-php-ext-install \
|
||||||
exif \
|
exif \
|
||||||
|
|
|
@ -30,9 +30,10 @@ RUN set -ex; \
|
||||||
pcre-dev \
|
pcre-dev \
|
||||||
postgresql-dev \
|
postgresql-dev \
|
||||||
imagemagick-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-configure ldap; \
|
||||||
docker-php-ext-install \
|
docker-php-ext-install \
|
||||||
exif \
|
exif \
|
||||||
|
|
|
@ -35,10 +35,11 @@ RUN set -ex; \
|
||||||
libpq-dev \
|
libpq-dev \
|
||||||
libxml2-dev \
|
libxml2-dev \
|
||||||
libmagickwand-dev \
|
libmagickwand-dev \
|
||||||
|
libwebp-dev \
|
||||||
; \
|
; \
|
||||||
\
|
\
|
||||||
debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
|
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-configure ldap --with-libdir="lib/$debMultiarch"; \
|
||||||
docker-php-ext-install \
|
docker-php-ext-install \
|
||||||
exif \
|
exif \
|
||||||
|
|
|
@ -36,10 +36,11 @@ RUN set -ex; \
|
||||||
libxml2-dev \
|
libxml2-dev \
|
||||||
libmagickwand-dev \
|
libmagickwand-dev \
|
||||||
libzip-dev \
|
libzip-dev \
|
||||||
|
libwebp-dev \
|
||||||
; \
|
; \
|
||||||
\
|
\
|
||||||
debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
|
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-configure ldap --with-libdir="lib/$debMultiarch"; \
|
||||||
docker-php-ext-install \
|
docker-php-ext-install \
|
||||||
exif \
|
exif \
|
||||||
|
|
|
@ -31,9 +31,10 @@ RUN set -ex; \
|
||||||
pcre-dev \
|
pcre-dev \
|
||||||
postgresql-dev \
|
postgresql-dev \
|
||||||
imagemagick-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-configure ldap; \
|
||||||
docker-php-ext-install \
|
docker-php-ext-install \
|
||||||
exif \
|
exif \
|
||||||
|
|
|
@ -36,10 +36,11 @@ RUN set -ex; \
|
||||||
libxml2-dev \
|
libxml2-dev \
|
||||||
libmagickwand-dev \
|
libmagickwand-dev \
|
||||||
libzip-dev \
|
libzip-dev \
|
||||||
|
libwebp-dev \
|
||||||
; \
|
; \
|
||||||
\
|
\
|
||||||
debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
|
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-configure ldap --with-libdir="lib/$debMultiarch"; \
|
||||||
docker-php-ext-install \
|
docker-php-ext-install \
|
||||||
exif \
|
exif \
|
||||||
|
|
|
@ -36,10 +36,11 @@ RUN set -ex; \
|
||||||
libxml2-dev \
|
libxml2-dev \
|
||||||
libmagickwand-dev \
|
libmagickwand-dev \
|
||||||
libzip-dev \
|
libzip-dev \
|
||||||
|
libwebp-dev \
|
||||||
; \
|
; \
|
||||||
\
|
\
|
||||||
debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
|
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-configure ldap --with-libdir="lib/$debMultiarch"; \
|
||||||
docker-php-ext-install \
|
docker-php-ext-install \
|
||||||
exif \
|
exif \
|
||||||
|
|
|
@ -31,9 +31,10 @@ RUN set -ex; \
|
||||||
pcre-dev \
|
pcre-dev \
|
||||||
postgresql-dev \
|
postgresql-dev \
|
||||||
imagemagick-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-configure ldap; \
|
||||||
docker-php-ext-install \
|
docker-php-ext-install \
|
||||||
exif \
|
exif \
|
||||||
|
|
|
@ -36,10 +36,11 @@ RUN set -ex; \
|
||||||
libxml2-dev \
|
libxml2-dev \
|
||||||
libmagickwand-dev \
|
libmagickwand-dev \
|
||||||
libzip-dev \
|
libzip-dev \
|
||||||
|
libwebp-dev \
|
||||||
; \
|
; \
|
||||||
\
|
\
|
||||||
debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
|
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-configure ldap --with-libdir="lib/$debMultiarch"; \
|
||||||
docker-php-ext-install \
|
docker-php-ext-install \
|
||||||
exif \
|
exif \
|
||||||
|
|
|
@ -30,9 +30,10 @@ RUN set -ex; \
|
||||||
pcre-dev \
|
pcre-dev \
|
||||||
postgresql-dev \
|
postgresql-dev \
|
||||||
imagemagick-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-configure ldap; \
|
||||||
docker-php-ext-install \
|
docker-php-ext-install \
|
||||||
exif \
|
exif \
|
||||||
|
|
|
@ -35,10 +35,11 @@ RUN set -ex; \
|
||||||
libxml2-dev \
|
libxml2-dev \
|
||||||
libmagickwand-dev \
|
libmagickwand-dev \
|
||||||
libzip-dev \
|
libzip-dev \
|
||||||
|
libwebp-dev \
|
||||||
; \
|
; \
|
||||||
\
|
\
|
||||||
debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
|
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-configure ldap --with-libdir="lib/$debMultiarch"; \
|
||||||
docker-php-ext-install \
|
docker-php-ext-install \
|
||||||
exif \
|
exif \
|
||||||
|
|
Loading…
Reference in a new issue