Skip to content

Commit ee75a22

Browse files
authored
Add avif support (#9)
* Add avif support * fix intl
1 parent 58ac079 commit ee75a22

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

Dockerfile

Lines changed: 5 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.
37+
RUN docker-php-ext-configure gd --with-freetype --with-jpeg --with-avif
3738

3839
# Install PHP extensions required by Drupal
3940
RUN docker-php-ext-install -j$(nproc) \
@@ -42,6 +43,7 @@ RUN docker-php-ext-install -j$(nproc) \
4243
pdo_mysql \
4344
mysqli \
4445
gd \
46+
intl \
4547
opcache \
4648
zip \
4749
mbstring \
@@ -65,6 +67,7 @@ RUN a2enmod rewrite
6567
RUN echo "memory_limit = -1" > /usr/local/etc/php/conf.d/cli-memory.ini
6668
# Set reasonable limit for Apache
6769
RUN echo "memory_limit = 512M" > /usr/local/etc/php/conf.d/apache-memory.ini
70+
RUN echo "post_max_size = 64M" > /usr/local/etc/php/conf.d/post-max-size.ini
6871

6972
# Install Playwright OS dependencies.
7073
RUN npx playwright install-deps

0 commit comments

Comments
 (0)