瀏覽代碼

Enable WebP support in GD

Kliment Ognianov 3 年之前
父節點
當前提交
7374994782
共有 2 個文件被更改,包括 4 次插入2 次删除
  1. 2 1
      images/php/7.4/Dockerfile
  2. 2 1
      images/php/8.1/Dockerfile

+ 2 - 1
images/php/7.4/Dockerfile

@@ -11,6 +11,7 @@ RUN apt-get update && apt-get install -y \
   libfreetype6-dev \
   libicu-dev \
   libjpeg62-turbo-dev \
+  libwebp-dev \
   libmcrypt-dev \
   libonig-dev \
   libpng-dev \
@@ -24,7 +25,7 @@ RUN apt-get update && apt-get install -y \
   zip \
   procps
 
-RUN docker-php-ext-configure gd --with-freetype --with-jpeg
+RUN docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp
 
 RUN docker-php-ext-install \
   bcmath \

+ 2 - 1
images/php/8.1/Dockerfile

@@ -11,6 +11,7 @@ RUN apt-get update && apt-get install -y \
   libbz2-dev \
   libfreetype6-dev \
   libicu-dev \
+  libwebp-dev \
   libjpeg62-turbo-dev \
   libmcrypt-dev \
   libonig-dev \
@@ -24,7 +25,7 @@ RUN apt-get update && apt-get install -y \
   vim \
   zip
 
-RUN docker-php-ext-configure gd --with-freetype --with-jpeg
+RUN docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp
 
 RUN docker-php-ext-install \
   bcmath \