build(docker): update PHP extensions configuration

- Removed unnecessary flag from gd configuration.
- Added missing libx11 dependency.
- Improved php-cli.ini settings formatting.
This commit is contained in:
Jérémy Munsch 2026-10-05 15:05:36 +02:00
parent 7eb4d566d5
commit 05571e28f5
Signed by: forge-joniko
GPG key ID: D7EFE2F5CB6CC0E4

View file

@ -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