diff --git a/images/runtime/php-fpm/8.2/bullseye.Dockerfile b/images/runtime/php-fpm/8.2/bullseye.Dockerfile index 8a78a143a3..b75606816b 100644 --- a/images/runtime/php-fpm/8.2/bullseye.Dockerfile +++ b/images/runtime/php-fpm/8.2/bullseye.Dockerfile @@ -319,16 +319,12 @@ RUN apt-mark hold msodbcsql17 msodbcsql18 odbcinst1debian2 odbcinst unixodbc uni && ln -s /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h RUN set -eux; \ - if [[ $PHP_VERSION == 7.4.* || $PHP_VERSION == 8.0.* || $PHP_VERSION == 8.1.* || $PHP_VERSION == 8.2.* || $PHP_VERSION == 8.3.* ]]; then \ - apt-get update \ - && apt-get upgrade -y \ - && apt-get install -y --no-install-recommends apache2-dev \ - && docker-php-ext-configure gd --with-freetype --with-jpeg \ - && PHP_OPENSSL=yes docker-php-ext-configure imap --with-kerberos --with-imap-ssl ; \ - else \ - docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \ - && docker-php-ext-configure imap --with-kerberos --with-imap-ssl ; \ - fi + apt-get update \ + && apt-get upgrade -y \ + && apt-mark unhold nginx \ + && apt-get install -y --no-install-recommends apache2-dev \ + && docker-php-ext-configure gd --with-freetype --with-jpeg \ + && PHP_OPENSSL=yes docker-php-ext-configure imap --with-kerberos --with-imap-ssl RUN docker-php-ext-configure pdo_odbc --with-pdo-odbc=unixODBC,/usr \ && docker-php-ext-install gd \ diff --git a/images/runtime/php-fpm/8.3/bookworm.Dockerfile b/images/runtime/php-fpm/8.3/bookworm.Dockerfile index bc8467f0a6..2a3a656810 100644 --- a/images/runtime/php-fpm/8.3/bookworm.Dockerfile +++ b/images/runtime/php-fpm/8.3/bookworm.Dockerfile @@ -313,16 +313,12 @@ RUN apt-mark hold msodbcsql17 msodbcsql18 odbcinst1debian2 odbcinst unixodbc uni && ln -s /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h RUN set -eux; \ - if [[ $PHP_VERSION == 7.4.* || $PHP_VERSION == 8.0.* || $PHP_VERSION == 8.1.* || $PHP_VERSION == 8.2.* || $PHP_VERSION == 8.3.* ]]; then \ - apt-get update \ - && apt-get upgrade -y \ - && apt-get install -y --no-install-recommends apache2-dev \ - && docker-php-ext-configure gd --with-freetype --with-jpeg \ - && PHP_OPENSSL=yes docker-php-ext-configure imap --with-kerberos --with-imap-ssl ; \ - else \ - docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \ - && docker-php-ext-configure imap --with-kerberos --with-imap-ssl ; \ - fi + apt-get update \ + && apt-get upgrade -y \ + && apt-mark unhold nginx \ + && apt-get install -y --no-install-recommends apache2-dev \ + && docker-php-ext-configure gd --with-freetype --with-jpeg \ + && PHP_OPENSSL=yes docker-php-ext-configure imap --with-kerberos --with-imap-ssl RUN docker-php-ext-configure pdo_odbc --with-pdo-odbc=unixODBC,/usr \ && docker-php-ext-install gd \ diff --git a/images/runtime/php-fpm/8.3/bullseye.Dockerfile b/images/runtime/php-fpm/8.3/bullseye.Dockerfile index cc2f71abca..42d5bf74dc 100644 --- a/images/runtime/php-fpm/8.3/bullseye.Dockerfile +++ b/images/runtime/php-fpm/8.3/bullseye.Dockerfile @@ -318,16 +318,12 @@ RUN apt-mark hold msodbcsql17 msodbcsql18 odbcinst1debian2 odbcinst unixodbc uni && ln -s /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h RUN set -eux; \ - if [[ $PHP_VERSION == 7.4.* || $PHP_VERSION == 8.0.* || $PHP_VERSION == 8.1.* || $PHP_VERSION == 8.2.* || $PHP_VERSION == 8.3.* ]]; then \ - apt-get update \ - && apt-get upgrade -y \ - && apt-get install -y --no-install-recommends apache2-dev \ - && docker-php-ext-configure gd --with-freetype --with-jpeg \ - && PHP_OPENSSL=yes docker-php-ext-configure imap --with-kerberos --with-imap-ssl ; \ - else \ - docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \ - && docker-php-ext-configure imap --with-kerberos --with-imap-ssl ; \ - fi + apt-get update \ + && apt-get upgrade -y \ + && apt-mark unhold nginx \ + && apt-get install -y --no-install-recommends apache2-dev \ + && docker-php-ext-configure gd --with-freetype --with-jpeg \ + && PHP_OPENSSL=yes docker-php-ext-configure imap --with-kerberos --with-imap-ssl RUN docker-php-ext-configure pdo_odbc --with-pdo-odbc=unixODBC,/usr \ && docker-php-ext-install gd \ diff --git a/images/runtime/php-fpm/8.4/bookworm.Dockerfile b/images/runtime/php-fpm/8.4/bookworm.Dockerfile index ef817ba37d..9b10eb8cb8 100644 --- a/images/runtime/php-fpm/8.4/bookworm.Dockerfile +++ b/images/runtime/php-fpm/8.4/bookworm.Dockerfile @@ -315,6 +315,7 @@ RUN apt-mark hold msodbcsql17 msodbcsql18 odbcinst1debian2 odbcinst unixodbc uni RUN set -eux; \ apt-get update \ && apt-get upgrade -y \ + && apt-mark unhold nginx \ && apt-get install -y --no-install-recommends apache2-dev \ && docker-php-ext-configure gd --with-freetype --with-jpeg \ # From php 8.4 version imap is removed from php core and moved to pecl diff --git a/images/runtime/php-fpm/8.4/bullseye.Dockerfile b/images/runtime/php-fpm/8.4/bullseye.Dockerfile index 365fd090ae..aa2aa09f8f 100644 --- a/images/runtime/php-fpm/8.4/bullseye.Dockerfile +++ b/images/runtime/php-fpm/8.4/bullseye.Dockerfile @@ -320,6 +320,7 @@ RUN apt-mark hold msodbcsql17 msodbcsql18 odbcinst1debian2 odbcinst unixodbc uni RUN set -eux; \ apt-get update \ && apt-get upgrade -y \ + && apt-mark unhold nginx \ && apt-get install -y --no-install-recommends apache2-dev \ && docker-php-ext-configure gd --with-freetype --with-jpeg \ # From php 8.4 version imap is removed from php core and moved to pecl diff --git a/images/runtime/php-fpm/8.5/noble.Dockerfile b/images/runtime/php-fpm/8.5/noble.Dockerfile index aa540d1704..f304396fd5 100644 --- a/images/runtime/php-fpm/8.5/noble.Dockerfile +++ b/images/runtime/php-fpm/8.5/noble.Dockerfile @@ -316,6 +316,7 @@ RUN apt-mark hold msodbcsql18 unixodbc unixodbc-dev nginx \ RUN set -eux; \ apt-get update \ && apt-get upgrade -y \ + && apt-mark unhold nginx \ && apt-get install -y --no-install-recommends apache2-dev \ && docker-php-ext-configure gd --with-freetype --with-jpeg \ # From php 8.4 version imap is removed from php core and moved to pecl