diff --git a/31/apache/Dockerfile b/31/apache/Dockerfile index 185d20b10..3de44d612 100644 --- a/31/apache/Dockerfile +++ b/31/apache/Dockerfile @@ -47,7 +47,7 @@ RUN set -ex; \ \ debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \ docker-php-ext-configure ftp --with-openssl-dir=/usr; \ - docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp; \ + docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp --with-avif; \ docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; \ docker-php-ext-install -j "$(nproc)" \ bcmath \ @@ -57,6 +57,7 @@ RUN set -ex; \ gmp \ intl \ ldap \ + opcache \ pcntl \ pdo_mysql \ pdo_pgsql \ diff --git a/31/fpm-alpine/Dockerfile b/31/fpm-alpine/Dockerfile index 2080087a4..9d5a5dd89 100644 --- a/31/fpm-alpine/Dockerfile +++ b/31/fpm-alpine/Dockerfile @@ -43,7 +43,7 @@ RUN set -ex; \ ; \ \ docker-php-ext-configure ftp --with-openssl-dir=/usr; \ - docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp; \ + docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp --with-avif; \ docker-php-ext-configure ldap; \ docker-php-ext-install -j "$(nproc)" \ bcmath \ @@ -53,6 +53,7 @@ RUN set -ex; \ gmp \ intl \ ldap \ + opcache \ pcntl \ pdo_mysql \ pdo_pgsql \ diff --git a/31/fpm/Dockerfile b/31/fpm/Dockerfile index 75453a3bf..00fce0e62 100644 --- a/31/fpm/Dockerfile +++ b/31/fpm/Dockerfile @@ -47,7 +47,7 @@ RUN set -ex; \ \ debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \ docker-php-ext-configure ftp --with-openssl-dir=/usr; \ - docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp; \ + docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp --with-avif; \ docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; \ docker-php-ext-install -j "$(nproc)" \ bcmath \ @@ -57,6 +57,7 @@ RUN set -ex; \ gmp \ intl \ ldap \ + opcache \ pcntl \ pdo_mysql \ pdo_pgsql \ diff --git a/32/apache/Dockerfile b/32/apache/Dockerfile index ceff3a6d5..49fa9f542 100644 --- a/32/apache/Dockerfile +++ b/32/apache/Dockerfile @@ -1,5 +1,5 @@ # DO NOT EDIT: created by update.sh from Dockerfile-debian.template -FROM php:8.3-apache-trixie +FROM php:8.4-apache-trixie # entrypoint.sh and cron.sh dependencies RUN set -ex; \ @@ -46,8 +46,8 @@ RUN set -ex; \ ; \ \ debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \ - docker-php-ext-configure ftp --with-openssl-dir=/usr; \ - docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp; \ + docker-php-ext-configure ftp --with-ftp-ssl; \ + docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp --with-avif; \ docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; \ docker-php-ext-install -j "$(nproc)" \ bcmath \ @@ -57,6 +57,7 @@ RUN set -ex; \ gmp \ intl \ ldap \ + opcache \ pcntl \ pdo_mysql \ pdo_pgsql \ diff --git a/32/fpm-alpine/Dockerfile b/32/fpm-alpine/Dockerfile index 6fcbe7cd4..1e3fb9c31 100644 --- a/32/fpm-alpine/Dockerfile +++ b/32/fpm-alpine/Dockerfile @@ -1,5 +1,5 @@ # DO NOT EDIT: created by update.sh from Dockerfile-alpine.template -FROM php:8.3-fpm-alpine3.23 +FROM php:8.4-fpm-alpine3.23 # entrypoint.sh and cron.sh dependencies RUN set -ex; \ @@ -42,8 +42,8 @@ RUN set -ex; \ postgresql-dev \ ; \ \ - docker-php-ext-configure ftp --with-openssl-dir=/usr; \ - docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp; \ + docker-php-ext-configure ftp --with-ftp-ssl; \ + docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp --with-avif; \ docker-php-ext-configure ldap; \ docker-php-ext-install -j "$(nproc)" \ bcmath \ @@ -53,6 +53,7 @@ RUN set -ex; \ gmp \ intl \ ldap \ + opcache \ pcntl \ pdo_mysql \ pdo_pgsql \ diff --git a/32/fpm/Dockerfile b/32/fpm/Dockerfile index c279c4fb2..78ecc8012 100644 --- a/32/fpm/Dockerfile +++ b/32/fpm/Dockerfile @@ -1,5 +1,5 @@ # DO NOT EDIT: created by update.sh from Dockerfile-debian.template -FROM php:8.3-fpm-trixie +FROM php:8.4-fpm-trixie # entrypoint.sh and cron.sh dependencies RUN set -ex; \ @@ -46,8 +46,8 @@ RUN set -ex; \ ; \ \ debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \ - docker-php-ext-configure ftp --with-openssl-dir=/usr; \ - docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp; \ + docker-php-ext-configure ftp --with-ftp-ssl; \ + docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp --with-avif; \ docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; \ docker-php-ext-install -j "$(nproc)" \ bcmath \ @@ -57,6 +57,7 @@ RUN set -ex; \ gmp \ intl \ ldap \ + opcache \ pcntl \ pdo_mysql \ pdo_pgsql \ diff --git a/Dockerfile-alpine.template b/Dockerfile-alpine.template index a7238bb74..0820363ad 100644 --- a/Dockerfile-alpine.template +++ b/Dockerfile-alpine.template @@ -41,8 +41,8 @@ RUN set -ex; \ postgresql-dev \ ; \ \ - docker-php-ext-configure ftp --with-openssl-dir=/usr; \ - docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp; \ + docker-php-ext-configure ftp %%FTP_OPTIONS%%; \ + docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp --with-avif; \ docker-php-ext-configure ldap; \ docker-php-ext-install -j "$(nproc)" \ bcmath \ @@ -52,6 +52,7 @@ RUN set -ex; \ gmp \ intl \ ldap \ + opcache \ pcntl \ pdo_mysql \ pdo_pgsql \ diff --git a/Dockerfile-debian.template b/Dockerfile-debian.template index 10974d6dc..12df7ef66 100644 --- a/Dockerfile-debian.template +++ b/Dockerfile-debian.template @@ -45,8 +45,8 @@ RUN set -ex; \ ; \ \ debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \ - docker-php-ext-configure ftp --with-openssl-dir=/usr; \ - docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp; \ + docker-php-ext-configure ftp %%FTP_OPTIONS%%; \ + docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp --with-avif; \ docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; \ docker-php-ext-install -j "$(nproc)" \ bcmath \ @@ -56,6 +56,7 @@ RUN set -ex; \ gmp \ intl \ ldap \ + opcache \ pcntl \ pdo_mysql \ pdo_pgsql \ diff --git a/update.sh b/update.sh index b1a403434..c49c9fca3 100755 --- a/update.sh +++ b/update.sh @@ -11,6 +11,12 @@ declare -A debian_version=( declare -A php_version=( [default]='8.3' + [32]='8.4' +) + +declare -A ftp_options=( + [default]='--with-openssl-dir=/usr' + [8.4]='--with-ftp-ssl' ) declare -A cmd=( @@ -107,6 +113,7 @@ function create_variant() { debianVersion=${debian_version[$version]-${debian_version[default]}} phpVersion=${php_version[$version]-${php_version[default]}} crontabInt=${crontab_int[$version]-${crontab_int[default]}} + ftp_options=${ftp_options[$phpVersion]-${ftp_options[default]}} url="https://github.com/nextcloud-releases/server/releases/download/v$fullversion/nextcloud-$fullversion.tar.bz2" ascUrl="https://github.com/nextcloud-releases/server/releases/download/v$fullversion/nextcloud-$fullversion.tar.bz2.asc" @@ -132,6 +139,7 @@ function create_variant() { s|%%VARIANT_EXTRAS%%|'"${extras[$variant]}"'|g; s/%%APCU_VERSION%%/'"${pecl_versions[APCu]}"'/g; s/%%IGBINARY_VERSION%%/'"${pecl_versions[igbinary]}"'/g; + s|%%FTP_OPTIONS%%|'"$ftp_options"'|g; s/%%IMAGICK_VERSION%%/'"${pecl_versions[imagick]}"'/g; s/%%MEMCACHED_VERSION%%/'"${pecl_versions[memcached]}"'/g; s/%%REDIS_VERSION%%/'"${pecl_versions[redis]}"'/g; diff --git a/versions.json b/versions.json index d7a8260f5..c0ec5de1a 100644 --- a/versions.json +++ b/versions.json @@ -9,19 +9,19 @@ "variant": "apache", "base": "debian", "baseVersion": "trixie", - "phpVersion": "8.3" + "phpVersion": "8.4" }, "fpm": { "variant": "fpm", "base": "debian", "baseVersion": "trixie", - "phpVersion": "8.3" + "phpVersion": "8.4" }, "fpm-alpine": { "variant": "fpm-alpine", "base": "alpine", "baseVersion": "3.23", - "phpVersion": "8.3" + "phpVersion": "8.4" } } },