Skip to content

Commit

Permalink
Install missing package for AVIF support
Browse files Browse the repository at this point in the history
  • Loading branch information
mukeshpanchal27 committed Sep 11, 2024
1 parent 3266f78 commit 8693d20
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ WORKDIR /var/www/html
{{ ) end -}}

# install the PHP extensions we need (https://make.wordpress.org/hosting/handbook/handbook/server-environment/#php-extensions)
# Note: imagick uses libheif for AVIF support, whereas GD uses libavif for AVIF support
RUN set -ex; \
\
{{ if is_alpine then ( -}}
Expand All @@ -51,6 +52,8 @@ RUN set -ex; \
libjpeg-turbo-dev \
libpng-dev \
libwebp-dev \
libheif-dev \
libavif-dev \
libzip-dev \
; \
{{ ) else ( -}}
Expand All @@ -72,6 +75,7 @@ RUN set -ex; \
--with-freetype \
--with-jpeg \
--with-webp \
--with-avif \
; \
docker-php-ext-install -j "$(nproc)" \
bcmath \
Expand Down

0 comments on commit 8693d20

Please sign in to comment.