Skip to content

Commit 41afaf5

Browse files
committed
Add avif support
1 parent 58ac079 commit 41afaf5

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ RUN curl -fsSL https://deb.nodesource.com/setup_24.x | bash - && \
1212
rm -f /etc/apt/sources.list.d/yarn.list /usr/share/keyrings/yarnkey.gpg
1313

1414
RUN apt-get install -y --no-install-recommends \
15+
libavif-dev \
1516
libsodium-dev \
1617
libpng-dev \
1718
libjpeg-dev \
@@ -32,8 +33,8 @@ RUN apt-get install -y --no-install-recommends \
3233
&& apt-get clean && \
3334
rm -rf /var/lib/apt/lists/*
3435

35-
# Configure GD with jpeg and freetype support
36-
RUN docker-php-ext-configure gd --with-freetype --with-jpeg
36+
# Configure GD with jpeg, freetype, and avif support. Configure intl.
37+
RUN docker-php-ext-configure gd intl --with-freetype --with-jpeg --with-avif
3738

3839
# Install PHP extensions required by Drupal
3940
RUN docker-php-ext-install -j$(nproc) \
@@ -65,6 +66,7 @@ RUN a2enmod rewrite
6566
RUN echo "memory_limit = -1" > /usr/local/etc/php/conf.d/cli-memory.ini
6667
# Set reasonable limit for Apache
6768
RUN echo "memory_limit = 512M" > /usr/local/etc/php/conf.d/apache-memory.ini
69+
RUN echo "post_max_size = 64M" > /usr/local/etc/php/conf.d/post-max-size.ini
6870

6971
# Install Playwright OS dependencies.
7072
RUN npx playwright install-deps

0 commit comments

Comments
 (0)