From 05571e28f5f51fe54ecdea514ef1fab67cae472e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Mon, 5 Oct 2026 15:05:36 +0200 Subject: [PATCH] build(docker): update PHP extensions configuration - Removed unnecessary flag from gd configuration. - Added missing libx11 dependency. - Improved php-cli.ini settings formatting. --- PHP8.5/CI/Dockerfile | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/PHP8.5/CI/Dockerfile b/PHP8.5/CI/Dockerfile index 4a5d7db..41f0815 100644 --- a/PHP8.5/CI/Dockerfile +++ b/PHP8.5/CI/Dockerfile @@ -26,7 +26,6 @@ RUN apk add --no-cache \ git RUN docker-php-ext-configure gd \ - --enable-gd \ --with-freetype \ --with-jpeg \ --with-webp \ @@ -44,7 +43,9 @@ RUN docker-php-ext-configure gd \ sockets \ xsl \ zip \ - && docker-php-ext-install -j"$(nproc)" gd intl ldap + gd \ + intl \ + ldap # redis install RUN curl -fsSL https://github.com/phpredis/phpredis/archive/refs/tags/6.3.0.tar.gz -o /tmp/redis.tar.gz \ @@ -89,6 +90,7 @@ RUN apk add --no-cache \ libpng \ libwebp \ libxpm \ + libx11 \ icu-libs \ gmp \ libxslt \ @@ -96,7 +98,12 @@ RUN apk add --no-cache \ libzip \ libldap \ # Php minimal configuration - && printf '# composer php cli ini settings\ndate.timezone=UTC\nmemory_limit=-1\nopcache.enable_cli=1\n' > "$PHP_INI_DIR/php-cli.ini" + && printf '%s\n' \ + '# composer php cli ini settings' \ + 'date.timezone=UTC' \ + 'memory_limit=-1' \ + 'opcache.enable_cli=1' \ + > "$PHP_INI_DIR/php-cli.ini" ENV COMPOSER_ALLOW_SUPERUSER=1 \ COMPOSER_HOME=/tmp