build(docker): update PHP 8.5 Ci extensions and configurations

This commit is contained in:
Jérémy Munsch 2026-10-05 12:12:41 +02:00
parent 74d85dec78
commit 7eb4d566d5
Signed by: forge-joniko
GPG key ID: D7EFE2F5CB6CC0E4

View file

@ -15,6 +15,8 @@ RUN apk add --no-cache \
libpng-dev \
libjpeg-turbo-dev \
freetype-dev \
libwebp-dev \
libxpm-dev \
icu-dev \
gmp-dev \
libxslt-dev \
@ -23,7 +25,12 @@ RUN apk add --no-cache \
openldap-dev \
git
RUN docker-php-ext-configure gd --with-freetype --with-jpeg \
RUN docker-php-ext-configure gd \
--enable-gd \
--with-freetype \
--with-jpeg \
--with-webp \
--with-xpm \
&& docker-php-ext-configure ldap \
&& docker-php-ext-install -j"$(nproc)" \
bcmath \
@ -72,26 +79,29 @@ FROM php@sha256:458a35f5b39d64293acde1c7cdc3af19864e60929570cc329fc44d7a5d45ae9e
# Composer install
COPY --from=composer/composer:2-bin /composer /usr/local/bin/composer
# Rumtime libs + git + tini for entry point
# Runtime libs + git + tini for entry point
RUN apk add --no-cache \
git \
tini \
zlib \
freetype \
libjpeg-turbo \
libpng \
libwebp \
libxpm \
icu-libs \
gmp \
libxslt \
libintl \
libzip \
libldap \
# Php mininal configuration
# 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"
ENV COMPOSER_ALLOW_SUPERUSER=1 \
COMPOSER_HOME=/tmp
# Git owner ship fix
# Git ownership fix
RUN git config --global --add safe.directory '*'
# Copy php extensions