From 41afaf503538c2645a201fc14ffb2928103dc602 Mon Sep 17 00:00:00 2001 From: Sally Young Date: Tue, 31 Mar 2026 14:33:45 +0100 Subject: [PATCH 1/2] Add avif support --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index fc15373..541e264 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,6 +12,7 @@ RUN curl -fsSL https://deb.nodesource.com/setup_24.x | bash - && \ rm -f /etc/apt/sources.list.d/yarn.list /usr/share/keyrings/yarnkey.gpg RUN apt-get install -y --no-install-recommends \ + libavif-dev \ libsodium-dev \ libpng-dev \ libjpeg-dev \ @@ -32,8 +33,8 @@ RUN apt-get install -y --no-install-recommends \ && apt-get clean && \ rm -rf /var/lib/apt/lists/* -# Configure GD with jpeg and freetype support -RUN docker-php-ext-configure gd --with-freetype --with-jpeg +# Configure GD with jpeg, freetype, and avif support. Configure intl. +RUN docker-php-ext-configure gd intl --with-freetype --with-jpeg --with-avif # Install PHP extensions required by Drupal RUN docker-php-ext-install -j$(nproc) \ @@ -65,6 +66,7 @@ RUN a2enmod rewrite RUN echo "memory_limit = -1" > /usr/local/etc/php/conf.d/cli-memory.ini # Set reasonable limit for Apache RUN echo "memory_limit = 512M" > /usr/local/etc/php/conf.d/apache-memory.ini +RUN echo "post_max_size = 64M" > /usr/local/etc/php/conf.d/post-max-size.ini # Install Playwright OS dependencies. RUN npx playwright install-deps From f9e71c1d8d91dfdbb86e500fe82c2cdbffe6d652 Mon Sep 17 00:00:00 2001 From: Sally Young Date: Tue, 31 Mar 2026 14:37:33 +0100 Subject: [PATCH 2/2] fix intl --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 541e264..d601f45 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,8 +33,8 @@ RUN apt-get install -y --no-install-recommends \ && apt-get clean && \ rm -rf /var/lib/apt/lists/* -# Configure GD with jpeg, freetype, and avif support. Configure intl. -RUN docker-php-ext-configure gd intl --with-freetype --with-jpeg --with-avif +# Configure GD with jpeg, freetype, and avif support. +RUN docker-php-ext-configure gd --with-freetype --with-jpeg --with-avif # Install PHP extensions required by Drupal RUN docker-php-ext-install -j$(nproc) \ @@ -43,6 +43,7 @@ RUN docker-php-ext-install -j$(nproc) \ pdo_mysql \ mysqli \ gd \ + intl \ opcache \ zip \ mbstring \