From 2a5269015e47294d70bbd025facd38b6ac564990 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 25 Jun 2025 11:55:05 +0200 Subject: [PATCH] Enable opcache by default OPcache is an essential part of modern PHP and will always be included in PHP starting with 8.5 (https://wiki.php.net/rfc/make_opcache_required). Enable OPcache by default in Docker to simplify the set-up. --- 8.1/alpine3.21/cli/Dockerfile | 3 +++ 8.1/alpine3.21/cli/docker-php-ext-install | 2 +- 8.1/alpine3.21/fpm/Dockerfile | 3 +++ 8.1/alpine3.21/fpm/docker-php-ext-install | 2 +- 8.1/alpine3.21/zts/Dockerfile | 3 +++ 8.1/alpine3.21/zts/docker-php-ext-install | 2 +- 8.1/alpine3.22/cli/Dockerfile | 3 +++ 8.1/alpine3.22/cli/docker-php-ext-install | 2 +- 8.1/alpine3.22/fpm/Dockerfile | 3 +++ 8.1/alpine3.22/fpm/docker-php-ext-install | 2 +- 8.1/alpine3.22/zts/Dockerfile | 3 +++ 8.1/alpine3.22/zts/docker-php-ext-install | 2 +- 8.1/bookworm/apache/Dockerfile | 3 +++ 8.1/bookworm/apache/docker-php-ext-install | 2 +- 8.1/bookworm/cli/Dockerfile | 3 +++ 8.1/bookworm/cli/docker-php-ext-install | 2 +- 8.1/bookworm/fpm/Dockerfile | 3 +++ 8.1/bookworm/fpm/docker-php-ext-install | 2 +- 8.1/bookworm/zts/Dockerfile | 3 +++ 8.1/bookworm/zts/docker-php-ext-install | 2 +- 8.1/bullseye/apache/Dockerfile | 3 +++ 8.1/bullseye/apache/docker-php-ext-install | 2 +- 8.1/bullseye/cli/Dockerfile | 3 +++ 8.1/bullseye/cli/docker-php-ext-install | 2 +- 8.1/bullseye/fpm/Dockerfile | 3 +++ 8.1/bullseye/fpm/docker-php-ext-install | 2 +- 8.1/bullseye/zts/Dockerfile | 3 +++ 8.1/bullseye/zts/docker-php-ext-install | 2 +- 8.2/alpine3.21/cli/Dockerfile | 3 +++ 8.2/alpine3.21/cli/docker-php-ext-install | 2 +- 8.2/alpine3.21/fpm/Dockerfile | 3 +++ 8.2/alpine3.21/fpm/docker-php-ext-install | 2 +- 8.2/alpine3.21/zts/Dockerfile | 3 +++ 8.2/alpine3.21/zts/docker-php-ext-install | 2 +- 8.2/alpine3.22/cli/Dockerfile | 3 +++ 8.2/alpine3.22/cli/docker-php-ext-install | 2 +- 8.2/alpine3.22/fpm/Dockerfile | 3 +++ 8.2/alpine3.22/fpm/docker-php-ext-install | 2 +- 8.2/alpine3.22/zts/Dockerfile | 3 +++ 8.2/alpine3.22/zts/docker-php-ext-install | 2 +- 8.2/bookworm/apache/Dockerfile | 3 +++ 8.2/bookworm/apache/docker-php-ext-install | 2 +- 8.2/bookworm/cli/Dockerfile | 3 +++ 8.2/bookworm/cli/docker-php-ext-install | 2 +- 8.2/bookworm/fpm/Dockerfile | 3 +++ 8.2/bookworm/fpm/docker-php-ext-install | 2 +- 8.2/bookworm/zts/Dockerfile | 3 +++ 8.2/bookworm/zts/docker-php-ext-install | 2 +- 8.2/bullseye/apache/Dockerfile | 3 +++ 8.2/bullseye/apache/docker-php-ext-install | 2 +- 8.2/bullseye/cli/Dockerfile | 3 +++ 8.2/bullseye/cli/docker-php-ext-install | 2 +- 8.2/bullseye/fpm/Dockerfile | 3 +++ 8.2/bullseye/fpm/docker-php-ext-install | 2 +- 8.2/bullseye/zts/Dockerfile | 3 +++ 8.2/bullseye/zts/docker-php-ext-install | 2 +- 8.3-rc/alpine3.21/cli/Dockerfile | 3 +++ 8.3-rc/alpine3.21/cli/docker-php-ext-install | 2 +- 8.3-rc/alpine3.21/fpm/Dockerfile | 3 +++ 8.3-rc/alpine3.21/fpm/docker-php-ext-install | 2 +- 8.3-rc/alpine3.21/zts/Dockerfile | 3 +++ 8.3-rc/alpine3.21/zts/docker-php-ext-install | 2 +- 8.3-rc/alpine3.22/cli/Dockerfile | 3 +++ 8.3-rc/alpine3.22/cli/docker-php-ext-install | 2 +- 8.3-rc/alpine3.22/fpm/Dockerfile | 3 +++ 8.3-rc/alpine3.22/fpm/docker-php-ext-install | 2 +- 8.3-rc/alpine3.22/zts/Dockerfile | 3 +++ 8.3-rc/alpine3.22/zts/docker-php-ext-install | 2 +- 8.3-rc/bookworm/apache/Dockerfile | 3 +++ 8.3-rc/bookworm/apache/docker-php-ext-install | 2 +- 8.3-rc/bookworm/cli/Dockerfile | 3 +++ 8.3-rc/bookworm/cli/docker-php-ext-install | 2 +- 8.3-rc/bookworm/fpm/Dockerfile | 3 +++ 8.3-rc/bookworm/fpm/docker-php-ext-install | 2 +- 8.3-rc/bookworm/zts/Dockerfile | 3 +++ 8.3-rc/bookworm/zts/docker-php-ext-install | 2 +- 8.3-rc/bullseye/apache/Dockerfile | 3 +++ 8.3-rc/bullseye/apache/docker-php-ext-install | 2 +- 8.3-rc/bullseye/cli/Dockerfile | 3 +++ 8.3-rc/bullseye/cli/docker-php-ext-install | 2 +- 8.3-rc/bullseye/fpm/Dockerfile | 3 +++ 8.3-rc/bullseye/fpm/docker-php-ext-install | 2 +- 8.3-rc/bullseye/zts/Dockerfile | 3 +++ 8.3-rc/bullseye/zts/docker-php-ext-install | 2 +- 8.3/alpine3.21/cli/Dockerfile | 3 +++ 8.3/alpine3.21/cli/docker-php-ext-install | 2 +- 8.3/alpine3.21/fpm/Dockerfile | 3 +++ 8.3/alpine3.21/fpm/docker-php-ext-install | 2 +- 8.3/alpine3.21/zts/Dockerfile | 3 +++ 8.3/alpine3.21/zts/docker-php-ext-install | 2 +- 8.3/alpine3.22/cli/Dockerfile | 3 +++ 8.3/alpine3.22/cli/docker-php-ext-install | 2 +- 8.3/alpine3.22/fpm/Dockerfile | 3 +++ 8.3/alpine3.22/fpm/docker-php-ext-install | 2 +- 8.3/alpine3.22/zts/Dockerfile | 3 +++ 8.3/alpine3.22/zts/docker-php-ext-install | 2 +- 8.3/bookworm/apache/Dockerfile | 3 +++ 8.3/bookworm/apache/docker-php-ext-install | 2 +- 8.3/bookworm/cli/Dockerfile | 3 +++ 8.3/bookworm/cli/docker-php-ext-install | 2 +- 8.3/bookworm/fpm/Dockerfile | 3 +++ 8.3/bookworm/fpm/docker-php-ext-install | 2 +- 8.3/bookworm/zts/Dockerfile | 3 +++ 8.3/bookworm/zts/docker-php-ext-install | 2 +- 8.3/bullseye/apache/Dockerfile | 3 +++ 8.3/bullseye/apache/docker-php-ext-install | 2 +- 8.3/bullseye/cli/Dockerfile | 3 +++ 8.3/bullseye/cli/docker-php-ext-install | 2 +- 8.3/bullseye/fpm/Dockerfile | 3 +++ 8.3/bullseye/fpm/docker-php-ext-install | 2 +- 8.3/bullseye/zts/Dockerfile | 3 +++ 8.3/bullseye/zts/docker-php-ext-install | 2 +- 8.4-rc/alpine3.21/cli/Dockerfile | 3 +++ 8.4-rc/alpine3.21/cli/docker-php-ext-install | 2 +- 8.4-rc/alpine3.21/fpm/Dockerfile | 3 +++ 8.4-rc/alpine3.21/fpm/docker-php-ext-install | 2 +- 8.4-rc/alpine3.21/zts/Dockerfile | 3 +++ 8.4-rc/alpine3.21/zts/docker-php-ext-install | 2 +- 8.4-rc/alpine3.22/cli/Dockerfile | 3 +++ 8.4-rc/alpine3.22/cli/docker-php-ext-install | 2 +- 8.4-rc/alpine3.22/fpm/Dockerfile | 3 +++ 8.4-rc/alpine3.22/fpm/docker-php-ext-install | 2 +- 8.4-rc/alpine3.22/zts/Dockerfile | 3 +++ 8.4-rc/alpine3.22/zts/docker-php-ext-install | 2 +- 8.4-rc/bookworm/apache/Dockerfile | 3 +++ 8.4-rc/bookworm/apache/docker-php-ext-install | 2 +- 8.4-rc/bookworm/cli/Dockerfile | 3 +++ 8.4-rc/bookworm/cli/docker-php-ext-install | 2 +- 8.4-rc/bookworm/fpm/Dockerfile | 3 +++ 8.4-rc/bookworm/fpm/docker-php-ext-install | 2 +- 8.4-rc/bookworm/zts/Dockerfile | 3 +++ 8.4-rc/bookworm/zts/docker-php-ext-install | 2 +- 8.4-rc/bullseye/apache/Dockerfile | 3 +++ 8.4-rc/bullseye/apache/docker-php-ext-install | 2 +- 8.4-rc/bullseye/cli/Dockerfile | 3 +++ 8.4-rc/bullseye/cli/docker-php-ext-install | 2 +- 8.4-rc/bullseye/fpm/Dockerfile | 3 +++ 8.4-rc/bullseye/fpm/docker-php-ext-install | 2 +- 8.4-rc/bullseye/zts/Dockerfile | 3 +++ 8.4-rc/bullseye/zts/docker-php-ext-install | 2 +- 8.4/alpine3.21/cli/Dockerfile | 3 +++ 8.4/alpine3.21/cli/docker-php-ext-install | 2 +- 8.4/alpine3.21/fpm/Dockerfile | 3 +++ 8.4/alpine3.21/fpm/docker-php-ext-install | 2 +- 8.4/alpine3.21/zts/Dockerfile | 3 +++ 8.4/alpine3.21/zts/docker-php-ext-install | 2 +- 8.4/alpine3.22/cli/Dockerfile | 3 +++ 8.4/alpine3.22/cli/docker-php-ext-install | 2 +- 8.4/alpine3.22/fpm/Dockerfile | 3 +++ 8.4/alpine3.22/fpm/docker-php-ext-install | 2 +- 8.4/alpine3.22/zts/Dockerfile | 3 +++ 8.4/alpine3.22/zts/docker-php-ext-install | 2 +- 8.4/bookworm/apache/Dockerfile | 3 +++ 8.4/bookworm/apache/docker-php-ext-install | 2 +- 8.4/bookworm/cli/Dockerfile | 3 +++ 8.4/bookworm/cli/docker-php-ext-install | 2 +- 8.4/bookworm/fpm/Dockerfile | 3 +++ 8.4/bookworm/fpm/docker-php-ext-install | 2 +- 8.4/bookworm/zts/Dockerfile | 3 +++ 8.4/bookworm/zts/docker-php-ext-install | 2 +- 8.4/bullseye/apache/Dockerfile | 3 +++ 8.4/bullseye/apache/docker-php-ext-install | 2 +- 8.4/bullseye/cli/Dockerfile | 3 +++ 8.4/bullseye/cli/docker-php-ext-install | 2 +- 8.4/bullseye/fpm/Dockerfile | 3 +++ 8.4/bullseye/fpm/docker-php-ext-install | 2 +- 8.4/bullseye/zts/Dockerfile | 3 +++ 8.4/bullseye/zts/docker-php-ext-install | 2 +- Dockerfile-linux.template | 5 +++++ docker-php-ext-install | 2 +- 170 files changed, 342 insertions(+), 85 deletions(-) diff --git a/8.1/alpine3.21/cli/Dockerfile b/8.1/alpine3.21/cli/Dockerfile index 0f1c34a9a6..e580b3a17e 100644 --- a/8.1/alpine3.21/cli/Dockerfile +++ b/8.1/alpine3.21/cli/Dockerfile @@ -215,6 +215,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.1/alpine3.21/cli/docker-php-ext-install b/8.1/alpine3.21/cli/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.1/alpine3.21/cli/docker-php-ext-install +++ b/8.1/alpine3.21/cli/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.1/alpine3.21/fpm/Dockerfile b/8.1/alpine3.21/fpm/Dockerfile index 73c7f784d9..8b32370f16 100644 --- a/8.1/alpine3.21/fpm/Dockerfile +++ b/8.1/alpine3.21/fpm/Dockerfile @@ -220,6 +220,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.1/alpine3.21/fpm/docker-php-ext-install b/8.1/alpine3.21/fpm/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.1/alpine3.21/fpm/docker-php-ext-install +++ b/8.1/alpine3.21/fpm/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.1/alpine3.21/zts/Dockerfile b/8.1/alpine3.21/zts/Dockerfile index 90d4c675e0..6ef9662ae1 100644 --- a/8.1/alpine3.21/zts/Dockerfile +++ b/8.1/alpine3.21/zts/Dockerfile @@ -223,6 +223,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.1/alpine3.21/zts/docker-php-ext-install b/8.1/alpine3.21/zts/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.1/alpine3.21/zts/docker-php-ext-install +++ b/8.1/alpine3.21/zts/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.1/alpine3.22/cli/Dockerfile b/8.1/alpine3.22/cli/Dockerfile index c6271d30c6..4c8ed5babc 100644 --- a/8.1/alpine3.22/cli/Dockerfile +++ b/8.1/alpine3.22/cli/Dockerfile @@ -215,6 +215,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.1/alpine3.22/cli/docker-php-ext-install b/8.1/alpine3.22/cli/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.1/alpine3.22/cli/docker-php-ext-install +++ b/8.1/alpine3.22/cli/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.1/alpine3.22/fpm/Dockerfile b/8.1/alpine3.22/fpm/Dockerfile index 89853a1079..6e4f4d0091 100644 --- a/8.1/alpine3.22/fpm/Dockerfile +++ b/8.1/alpine3.22/fpm/Dockerfile @@ -220,6 +220,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.1/alpine3.22/fpm/docker-php-ext-install b/8.1/alpine3.22/fpm/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.1/alpine3.22/fpm/docker-php-ext-install +++ b/8.1/alpine3.22/fpm/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.1/alpine3.22/zts/Dockerfile b/8.1/alpine3.22/zts/Dockerfile index 168800df03..3087e02148 100644 --- a/8.1/alpine3.22/zts/Dockerfile +++ b/8.1/alpine3.22/zts/Dockerfile @@ -229,6 +229,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.1/alpine3.22/zts/docker-php-ext-install b/8.1/alpine3.22/zts/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.1/alpine3.22/zts/docker-php-ext-install +++ b/8.1/alpine3.22/zts/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.1/bookworm/apache/Dockerfile b/8.1/bookworm/apache/Dockerfile index 4aff07ca12..5854c2294f 100644 --- a/8.1/bookworm/apache/Dockerfile +++ b/8.1/bookworm/apache/Dockerfile @@ -282,6 +282,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.1/bookworm/apache/docker-php-ext-install b/8.1/bookworm/apache/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.1/bookworm/apache/docker-php-ext-install +++ b/8.1/bookworm/apache/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.1/bookworm/cli/Dockerfile b/8.1/bookworm/cli/Dockerfile index 0448b73d4c..0badc91ff4 100644 --- a/8.1/bookworm/cli/Dockerfile +++ b/8.1/bookworm/cli/Dockerfile @@ -221,6 +221,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.1/bookworm/cli/docker-php-ext-install b/8.1/bookworm/cli/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.1/bookworm/cli/docker-php-ext-install +++ b/8.1/bookworm/cli/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.1/bookworm/fpm/Dockerfile b/8.1/bookworm/fpm/Dockerfile index 80ca00fc3c..37e5abd433 100644 --- a/8.1/bookworm/fpm/Dockerfile +++ b/8.1/bookworm/fpm/Dockerfile @@ -223,6 +223,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.1/bookworm/fpm/docker-php-ext-install b/8.1/bookworm/fpm/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.1/bookworm/fpm/docker-php-ext-install +++ b/8.1/bookworm/fpm/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.1/bookworm/zts/Dockerfile b/8.1/bookworm/zts/Dockerfile index 10ee4ea0a5..e4fda4e3ed 100644 --- a/8.1/bookworm/zts/Dockerfile +++ b/8.1/bookworm/zts/Dockerfile @@ -226,6 +226,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.1/bookworm/zts/docker-php-ext-install b/8.1/bookworm/zts/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.1/bookworm/zts/docker-php-ext-install +++ b/8.1/bookworm/zts/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.1/bullseye/apache/Dockerfile b/8.1/bullseye/apache/Dockerfile index 08675ef718..5823c7524f 100644 --- a/8.1/bullseye/apache/Dockerfile +++ b/8.1/bullseye/apache/Dockerfile @@ -280,6 +280,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.1/bullseye/apache/docker-php-ext-install b/8.1/bullseye/apache/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.1/bullseye/apache/docker-php-ext-install +++ b/8.1/bullseye/apache/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.1/bullseye/cli/Dockerfile b/8.1/bullseye/cli/Dockerfile index 105a4ce24f..11fc84845a 100644 --- a/8.1/bullseye/cli/Dockerfile +++ b/8.1/bullseye/cli/Dockerfile @@ -221,6 +221,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.1/bullseye/cli/docker-php-ext-install b/8.1/bullseye/cli/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.1/bullseye/cli/docker-php-ext-install +++ b/8.1/bullseye/cli/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.1/bullseye/fpm/Dockerfile b/8.1/bullseye/fpm/Dockerfile index 04aacf6553..ea88f65a4f 100644 --- a/8.1/bullseye/fpm/Dockerfile +++ b/8.1/bullseye/fpm/Dockerfile @@ -223,6 +223,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.1/bullseye/fpm/docker-php-ext-install b/8.1/bullseye/fpm/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.1/bullseye/fpm/docker-php-ext-install +++ b/8.1/bullseye/fpm/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.1/bullseye/zts/Dockerfile b/8.1/bullseye/zts/Dockerfile index e86076f925..2103024cdc 100644 --- a/8.1/bullseye/zts/Dockerfile +++ b/8.1/bullseye/zts/Dockerfile @@ -226,6 +226,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.1/bullseye/zts/docker-php-ext-install b/8.1/bullseye/zts/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.1/bullseye/zts/docker-php-ext-install +++ b/8.1/bullseye/zts/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.2/alpine3.21/cli/Dockerfile b/8.2/alpine3.21/cli/Dockerfile index 4a77709910..cc90466ed2 100644 --- a/8.2/alpine3.21/cli/Dockerfile +++ b/8.2/alpine3.21/cli/Dockerfile @@ -200,6 +200,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.2/alpine3.21/cli/docker-php-ext-install b/8.2/alpine3.21/cli/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.2/alpine3.21/cli/docker-php-ext-install +++ b/8.2/alpine3.21/cli/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.2/alpine3.21/fpm/Dockerfile b/8.2/alpine3.21/fpm/Dockerfile index 3140493108..bb08205c21 100644 --- a/8.2/alpine3.21/fpm/Dockerfile +++ b/8.2/alpine3.21/fpm/Dockerfile @@ -205,6 +205,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.2/alpine3.21/fpm/docker-php-ext-install b/8.2/alpine3.21/fpm/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.2/alpine3.21/fpm/docker-php-ext-install +++ b/8.2/alpine3.21/fpm/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.2/alpine3.21/zts/Dockerfile b/8.2/alpine3.21/zts/Dockerfile index 956e7a30c4..9abd80217c 100644 --- a/8.2/alpine3.21/zts/Dockerfile +++ b/8.2/alpine3.21/zts/Dockerfile @@ -208,6 +208,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.2/alpine3.21/zts/docker-php-ext-install b/8.2/alpine3.21/zts/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.2/alpine3.21/zts/docker-php-ext-install +++ b/8.2/alpine3.21/zts/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.2/alpine3.22/cli/Dockerfile b/8.2/alpine3.22/cli/Dockerfile index 6df54d8206..5d1cab60a6 100644 --- a/8.2/alpine3.22/cli/Dockerfile +++ b/8.2/alpine3.22/cli/Dockerfile @@ -200,6 +200,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.2/alpine3.22/cli/docker-php-ext-install b/8.2/alpine3.22/cli/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.2/alpine3.22/cli/docker-php-ext-install +++ b/8.2/alpine3.22/cli/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.2/alpine3.22/fpm/Dockerfile b/8.2/alpine3.22/fpm/Dockerfile index fdcfe60ed0..6f19994b00 100644 --- a/8.2/alpine3.22/fpm/Dockerfile +++ b/8.2/alpine3.22/fpm/Dockerfile @@ -205,6 +205,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.2/alpine3.22/fpm/docker-php-ext-install b/8.2/alpine3.22/fpm/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.2/alpine3.22/fpm/docker-php-ext-install +++ b/8.2/alpine3.22/fpm/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.2/alpine3.22/zts/Dockerfile b/8.2/alpine3.22/zts/Dockerfile index 093218036e..cf50faf3c6 100644 --- a/8.2/alpine3.22/zts/Dockerfile +++ b/8.2/alpine3.22/zts/Dockerfile @@ -216,6 +216,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.2/alpine3.22/zts/docker-php-ext-install b/8.2/alpine3.22/zts/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.2/alpine3.22/zts/docker-php-ext-install +++ b/8.2/alpine3.22/zts/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.2/bookworm/apache/Dockerfile b/8.2/bookworm/apache/Dockerfile index f12fd4deae..30bfdc847f 100644 --- a/8.2/bookworm/apache/Dockerfile +++ b/8.2/bookworm/apache/Dockerfile @@ -280,6 +280,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.2/bookworm/apache/docker-php-ext-install b/8.2/bookworm/apache/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.2/bookworm/apache/docker-php-ext-install +++ b/8.2/bookworm/apache/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.2/bookworm/cli/Dockerfile b/8.2/bookworm/cli/Dockerfile index e1746da510..16d0feec1e 100644 --- a/8.2/bookworm/cli/Dockerfile +++ b/8.2/bookworm/cli/Dockerfile @@ -219,6 +219,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.2/bookworm/cli/docker-php-ext-install b/8.2/bookworm/cli/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.2/bookworm/cli/docker-php-ext-install +++ b/8.2/bookworm/cli/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.2/bookworm/fpm/Dockerfile b/8.2/bookworm/fpm/Dockerfile index cf4ec38ea0..0cd6c83a99 100644 --- a/8.2/bookworm/fpm/Dockerfile +++ b/8.2/bookworm/fpm/Dockerfile @@ -221,6 +221,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.2/bookworm/fpm/docker-php-ext-install b/8.2/bookworm/fpm/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.2/bookworm/fpm/docker-php-ext-install +++ b/8.2/bookworm/fpm/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.2/bookworm/zts/Dockerfile b/8.2/bookworm/zts/Dockerfile index c9c4d83715..1fa57d4e5f 100644 --- a/8.2/bookworm/zts/Dockerfile +++ b/8.2/bookworm/zts/Dockerfile @@ -224,6 +224,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.2/bookworm/zts/docker-php-ext-install b/8.2/bookworm/zts/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.2/bookworm/zts/docker-php-ext-install +++ b/8.2/bookworm/zts/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.2/bullseye/apache/Dockerfile b/8.2/bullseye/apache/Dockerfile index c3b736234d..b302b1e1ab 100644 --- a/8.2/bullseye/apache/Dockerfile +++ b/8.2/bullseye/apache/Dockerfile @@ -278,6 +278,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.2/bullseye/apache/docker-php-ext-install b/8.2/bullseye/apache/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.2/bullseye/apache/docker-php-ext-install +++ b/8.2/bullseye/apache/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.2/bullseye/cli/Dockerfile b/8.2/bullseye/cli/Dockerfile index 101a068a06..67b55cb7c4 100644 --- a/8.2/bullseye/cli/Dockerfile +++ b/8.2/bullseye/cli/Dockerfile @@ -219,6 +219,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.2/bullseye/cli/docker-php-ext-install b/8.2/bullseye/cli/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.2/bullseye/cli/docker-php-ext-install +++ b/8.2/bullseye/cli/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.2/bullseye/fpm/Dockerfile b/8.2/bullseye/fpm/Dockerfile index aa1cf5316a..2c9b9801da 100644 --- a/8.2/bullseye/fpm/Dockerfile +++ b/8.2/bullseye/fpm/Dockerfile @@ -221,6 +221,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.2/bullseye/fpm/docker-php-ext-install b/8.2/bullseye/fpm/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.2/bullseye/fpm/docker-php-ext-install +++ b/8.2/bullseye/fpm/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.2/bullseye/zts/Dockerfile b/8.2/bullseye/zts/Dockerfile index 9296bbfe1c..20fc5085e5 100644 --- a/8.2/bullseye/zts/Dockerfile +++ b/8.2/bullseye/zts/Dockerfile @@ -224,6 +224,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.2/bullseye/zts/docker-php-ext-install b/8.2/bullseye/zts/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.2/bullseye/zts/docker-php-ext-install +++ b/8.2/bullseye/zts/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.3-rc/alpine3.21/cli/Dockerfile b/8.3-rc/alpine3.21/cli/Dockerfile index acbba434f3..6971a5819f 100644 --- a/8.3-rc/alpine3.21/cli/Dockerfile +++ b/8.3-rc/alpine3.21/cli/Dockerfile @@ -196,6 +196,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.3-rc/alpine3.21/cli/docker-php-ext-install b/8.3-rc/alpine3.21/cli/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.3-rc/alpine3.21/cli/docker-php-ext-install +++ b/8.3-rc/alpine3.21/cli/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.3-rc/alpine3.21/fpm/Dockerfile b/8.3-rc/alpine3.21/fpm/Dockerfile index bfbbe05bb3..2a9019daef 100644 --- a/8.3-rc/alpine3.21/fpm/Dockerfile +++ b/8.3-rc/alpine3.21/fpm/Dockerfile @@ -201,6 +201,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.3-rc/alpine3.21/fpm/docker-php-ext-install b/8.3-rc/alpine3.21/fpm/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.3-rc/alpine3.21/fpm/docker-php-ext-install +++ b/8.3-rc/alpine3.21/fpm/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.3-rc/alpine3.21/zts/Dockerfile b/8.3-rc/alpine3.21/zts/Dockerfile index 06b237987b..6d0ef7ecfe 100644 --- a/8.3-rc/alpine3.21/zts/Dockerfile +++ b/8.3-rc/alpine3.21/zts/Dockerfile @@ -203,6 +203,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.3-rc/alpine3.21/zts/docker-php-ext-install b/8.3-rc/alpine3.21/zts/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.3-rc/alpine3.21/zts/docker-php-ext-install +++ b/8.3-rc/alpine3.21/zts/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.3-rc/alpine3.22/cli/Dockerfile b/8.3-rc/alpine3.22/cli/Dockerfile index bd6d3ef8ca..8e73da606b 100644 --- a/8.3-rc/alpine3.22/cli/Dockerfile +++ b/8.3-rc/alpine3.22/cli/Dockerfile @@ -196,6 +196,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.3-rc/alpine3.22/cli/docker-php-ext-install b/8.3-rc/alpine3.22/cli/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.3-rc/alpine3.22/cli/docker-php-ext-install +++ b/8.3-rc/alpine3.22/cli/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.3-rc/alpine3.22/fpm/Dockerfile b/8.3-rc/alpine3.22/fpm/Dockerfile index df5ca007a5..badf8f5820 100644 --- a/8.3-rc/alpine3.22/fpm/Dockerfile +++ b/8.3-rc/alpine3.22/fpm/Dockerfile @@ -201,6 +201,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.3-rc/alpine3.22/fpm/docker-php-ext-install b/8.3-rc/alpine3.22/fpm/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.3-rc/alpine3.22/fpm/docker-php-ext-install +++ b/8.3-rc/alpine3.22/fpm/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.3-rc/alpine3.22/zts/Dockerfile b/8.3-rc/alpine3.22/zts/Dockerfile index 9b5e293c41..0ca9fe02aa 100644 --- a/8.3-rc/alpine3.22/zts/Dockerfile +++ b/8.3-rc/alpine3.22/zts/Dockerfile @@ -203,6 +203,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.3-rc/alpine3.22/zts/docker-php-ext-install b/8.3-rc/alpine3.22/zts/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.3-rc/alpine3.22/zts/docker-php-ext-install +++ b/8.3-rc/alpine3.22/zts/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.3-rc/bookworm/apache/Dockerfile b/8.3-rc/bookworm/apache/Dockerfile index c8f684d7d4..44a2f81af3 100644 --- a/8.3-rc/bookworm/apache/Dockerfile +++ b/8.3-rc/bookworm/apache/Dockerfile @@ -276,6 +276,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.3-rc/bookworm/apache/docker-php-ext-install b/8.3-rc/bookworm/apache/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.3-rc/bookworm/apache/docker-php-ext-install +++ b/8.3-rc/bookworm/apache/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.3-rc/bookworm/cli/Dockerfile b/8.3-rc/bookworm/cli/Dockerfile index 83e2a2a440..9dd2994a6e 100644 --- a/8.3-rc/bookworm/cli/Dockerfile +++ b/8.3-rc/bookworm/cli/Dockerfile @@ -215,6 +215,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.3-rc/bookworm/cli/docker-php-ext-install b/8.3-rc/bookworm/cli/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.3-rc/bookworm/cli/docker-php-ext-install +++ b/8.3-rc/bookworm/cli/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.3-rc/bookworm/fpm/Dockerfile b/8.3-rc/bookworm/fpm/Dockerfile index f2a89ef4b9..87d6388e9b 100644 --- a/8.3-rc/bookworm/fpm/Dockerfile +++ b/8.3-rc/bookworm/fpm/Dockerfile @@ -217,6 +217,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.3-rc/bookworm/fpm/docker-php-ext-install b/8.3-rc/bookworm/fpm/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.3-rc/bookworm/fpm/docker-php-ext-install +++ b/8.3-rc/bookworm/fpm/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.3-rc/bookworm/zts/Dockerfile b/8.3-rc/bookworm/zts/Dockerfile index b49345931f..35b2ac9e5c 100644 --- a/8.3-rc/bookworm/zts/Dockerfile +++ b/8.3-rc/bookworm/zts/Dockerfile @@ -219,6 +219,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.3-rc/bookworm/zts/docker-php-ext-install b/8.3-rc/bookworm/zts/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.3-rc/bookworm/zts/docker-php-ext-install +++ b/8.3-rc/bookworm/zts/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.3-rc/bullseye/apache/Dockerfile b/8.3-rc/bullseye/apache/Dockerfile index 5cdbb6d401..e3b0f34a64 100644 --- a/8.3-rc/bullseye/apache/Dockerfile +++ b/8.3-rc/bullseye/apache/Dockerfile @@ -274,6 +274,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.3-rc/bullseye/apache/docker-php-ext-install b/8.3-rc/bullseye/apache/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.3-rc/bullseye/apache/docker-php-ext-install +++ b/8.3-rc/bullseye/apache/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.3-rc/bullseye/cli/Dockerfile b/8.3-rc/bullseye/cli/Dockerfile index c15d3b3333..4ef1241804 100644 --- a/8.3-rc/bullseye/cli/Dockerfile +++ b/8.3-rc/bullseye/cli/Dockerfile @@ -215,6 +215,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.3-rc/bullseye/cli/docker-php-ext-install b/8.3-rc/bullseye/cli/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.3-rc/bullseye/cli/docker-php-ext-install +++ b/8.3-rc/bullseye/cli/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.3-rc/bullseye/fpm/Dockerfile b/8.3-rc/bullseye/fpm/Dockerfile index 918643f387..93632d455e 100644 --- a/8.3-rc/bullseye/fpm/Dockerfile +++ b/8.3-rc/bullseye/fpm/Dockerfile @@ -217,6 +217,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.3-rc/bullseye/fpm/docker-php-ext-install b/8.3-rc/bullseye/fpm/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.3-rc/bullseye/fpm/docker-php-ext-install +++ b/8.3-rc/bullseye/fpm/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.3-rc/bullseye/zts/Dockerfile b/8.3-rc/bullseye/zts/Dockerfile index 0020a53f18..d806eda8ed 100644 --- a/8.3-rc/bullseye/zts/Dockerfile +++ b/8.3-rc/bullseye/zts/Dockerfile @@ -219,6 +219,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.3-rc/bullseye/zts/docker-php-ext-install b/8.3-rc/bullseye/zts/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.3-rc/bullseye/zts/docker-php-ext-install +++ b/8.3-rc/bullseye/zts/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.3/alpine3.21/cli/Dockerfile b/8.3/alpine3.21/cli/Dockerfile index 30e2fbf3e3..fbdc640dc8 100644 --- a/8.3/alpine3.21/cli/Dockerfile +++ b/8.3/alpine3.21/cli/Dockerfile @@ -196,6 +196,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.3/alpine3.21/cli/docker-php-ext-install b/8.3/alpine3.21/cli/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.3/alpine3.21/cli/docker-php-ext-install +++ b/8.3/alpine3.21/cli/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.3/alpine3.21/fpm/Dockerfile b/8.3/alpine3.21/fpm/Dockerfile index efe7408415..360bac6c78 100644 --- a/8.3/alpine3.21/fpm/Dockerfile +++ b/8.3/alpine3.21/fpm/Dockerfile @@ -201,6 +201,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.3/alpine3.21/fpm/docker-php-ext-install b/8.3/alpine3.21/fpm/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.3/alpine3.21/fpm/docker-php-ext-install +++ b/8.3/alpine3.21/fpm/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.3/alpine3.21/zts/Dockerfile b/8.3/alpine3.21/zts/Dockerfile index b5a102bbba..f14bf02cae 100644 --- a/8.3/alpine3.21/zts/Dockerfile +++ b/8.3/alpine3.21/zts/Dockerfile @@ -203,6 +203,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.3/alpine3.21/zts/docker-php-ext-install b/8.3/alpine3.21/zts/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.3/alpine3.21/zts/docker-php-ext-install +++ b/8.3/alpine3.21/zts/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.3/alpine3.22/cli/Dockerfile b/8.3/alpine3.22/cli/Dockerfile index adad4cb233..768b347ca7 100644 --- a/8.3/alpine3.22/cli/Dockerfile +++ b/8.3/alpine3.22/cli/Dockerfile @@ -196,6 +196,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.3/alpine3.22/cli/docker-php-ext-install b/8.3/alpine3.22/cli/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.3/alpine3.22/cli/docker-php-ext-install +++ b/8.3/alpine3.22/cli/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.3/alpine3.22/fpm/Dockerfile b/8.3/alpine3.22/fpm/Dockerfile index 1d280e5af5..05c37a3471 100644 --- a/8.3/alpine3.22/fpm/Dockerfile +++ b/8.3/alpine3.22/fpm/Dockerfile @@ -201,6 +201,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.3/alpine3.22/fpm/docker-php-ext-install b/8.3/alpine3.22/fpm/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.3/alpine3.22/fpm/docker-php-ext-install +++ b/8.3/alpine3.22/fpm/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.3/alpine3.22/zts/Dockerfile b/8.3/alpine3.22/zts/Dockerfile index 816d9d495d..e4a3b31dd1 100644 --- a/8.3/alpine3.22/zts/Dockerfile +++ b/8.3/alpine3.22/zts/Dockerfile @@ -211,6 +211,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.3/alpine3.22/zts/docker-php-ext-install b/8.3/alpine3.22/zts/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.3/alpine3.22/zts/docker-php-ext-install +++ b/8.3/alpine3.22/zts/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.3/bookworm/apache/Dockerfile b/8.3/bookworm/apache/Dockerfile index f018012629..a9cbb492b4 100644 --- a/8.3/bookworm/apache/Dockerfile +++ b/8.3/bookworm/apache/Dockerfile @@ -276,6 +276,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.3/bookworm/apache/docker-php-ext-install b/8.3/bookworm/apache/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.3/bookworm/apache/docker-php-ext-install +++ b/8.3/bookworm/apache/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.3/bookworm/cli/Dockerfile b/8.3/bookworm/cli/Dockerfile index 573b2dcab8..bba6a0ca74 100644 --- a/8.3/bookworm/cli/Dockerfile +++ b/8.3/bookworm/cli/Dockerfile @@ -215,6 +215,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.3/bookworm/cli/docker-php-ext-install b/8.3/bookworm/cli/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.3/bookworm/cli/docker-php-ext-install +++ b/8.3/bookworm/cli/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.3/bookworm/fpm/Dockerfile b/8.3/bookworm/fpm/Dockerfile index cd479c22c4..6f54e3f787 100644 --- a/8.3/bookworm/fpm/Dockerfile +++ b/8.3/bookworm/fpm/Dockerfile @@ -217,6 +217,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.3/bookworm/fpm/docker-php-ext-install b/8.3/bookworm/fpm/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.3/bookworm/fpm/docker-php-ext-install +++ b/8.3/bookworm/fpm/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.3/bookworm/zts/Dockerfile b/8.3/bookworm/zts/Dockerfile index 93510f1eb3..84db527ff8 100644 --- a/8.3/bookworm/zts/Dockerfile +++ b/8.3/bookworm/zts/Dockerfile @@ -219,6 +219,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.3/bookworm/zts/docker-php-ext-install b/8.3/bookworm/zts/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.3/bookworm/zts/docker-php-ext-install +++ b/8.3/bookworm/zts/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.3/bullseye/apache/Dockerfile b/8.3/bullseye/apache/Dockerfile index f3cb81c9b7..0d3f91414d 100644 --- a/8.3/bullseye/apache/Dockerfile +++ b/8.3/bullseye/apache/Dockerfile @@ -274,6 +274,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.3/bullseye/apache/docker-php-ext-install b/8.3/bullseye/apache/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.3/bullseye/apache/docker-php-ext-install +++ b/8.3/bullseye/apache/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.3/bullseye/cli/Dockerfile b/8.3/bullseye/cli/Dockerfile index 4f0246ddd1..1ccc85bad2 100644 --- a/8.3/bullseye/cli/Dockerfile +++ b/8.3/bullseye/cli/Dockerfile @@ -215,6 +215,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.3/bullseye/cli/docker-php-ext-install b/8.3/bullseye/cli/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.3/bullseye/cli/docker-php-ext-install +++ b/8.3/bullseye/cli/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.3/bullseye/fpm/Dockerfile b/8.3/bullseye/fpm/Dockerfile index a00ed1c060..7df3e992de 100644 --- a/8.3/bullseye/fpm/Dockerfile +++ b/8.3/bullseye/fpm/Dockerfile @@ -217,6 +217,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.3/bullseye/fpm/docker-php-ext-install b/8.3/bullseye/fpm/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.3/bullseye/fpm/docker-php-ext-install +++ b/8.3/bullseye/fpm/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.3/bullseye/zts/Dockerfile b/8.3/bullseye/zts/Dockerfile index 0953d0c817..bf74d67b5a 100644 --- a/8.3/bullseye/zts/Dockerfile +++ b/8.3/bullseye/zts/Dockerfile @@ -219,6 +219,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.3/bullseye/zts/docker-php-ext-install b/8.3/bullseye/zts/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.3/bullseye/zts/docker-php-ext-install +++ b/8.3/bullseye/zts/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.4-rc/alpine3.21/cli/Dockerfile b/8.4-rc/alpine3.21/cli/Dockerfile index 8972d1bd43..d9d3e9f64d 100644 --- a/8.4-rc/alpine3.21/cli/Dockerfile +++ b/8.4-rc/alpine3.21/cli/Dockerfile @@ -196,6 +196,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.4-rc/alpine3.21/cli/docker-php-ext-install b/8.4-rc/alpine3.21/cli/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.4-rc/alpine3.21/cli/docker-php-ext-install +++ b/8.4-rc/alpine3.21/cli/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.4-rc/alpine3.21/fpm/Dockerfile b/8.4-rc/alpine3.21/fpm/Dockerfile index ca7913cb06..f81832cad6 100644 --- a/8.4-rc/alpine3.21/fpm/Dockerfile +++ b/8.4-rc/alpine3.21/fpm/Dockerfile @@ -201,6 +201,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.4-rc/alpine3.21/fpm/docker-php-ext-install b/8.4-rc/alpine3.21/fpm/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.4-rc/alpine3.21/fpm/docker-php-ext-install +++ b/8.4-rc/alpine3.21/fpm/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.4-rc/alpine3.21/zts/Dockerfile b/8.4-rc/alpine3.21/zts/Dockerfile index c256777735..c69fc34309 100644 --- a/8.4-rc/alpine3.21/zts/Dockerfile +++ b/8.4-rc/alpine3.21/zts/Dockerfile @@ -203,6 +203,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.4-rc/alpine3.21/zts/docker-php-ext-install b/8.4-rc/alpine3.21/zts/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.4-rc/alpine3.21/zts/docker-php-ext-install +++ b/8.4-rc/alpine3.21/zts/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.4-rc/alpine3.22/cli/Dockerfile b/8.4-rc/alpine3.22/cli/Dockerfile index be4ce98e59..cd6340b125 100644 --- a/8.4-rc/alpine3.22/cli/Dockerfile +++ b/8.4-rc/alpine3.22/cli/Dockerfile @@ -196,6 +196,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.4-rc/alpine3.22/cli/docker-php-ext-install b/8.4-rc/alpine3.22/cli/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.4-rc/alpine3.22/cli/docker-php-ext-install +++ b/8.4-rc/alpine3.22/cli/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.4-rc/alpine3.22/fpm/Dockerfile b/8.4-rc/alpine3.22/fpm/Dockerfile index 08fe6b8b2c..065677449d 100644 --- a/8.4-rc/alpine3.22/fpm/Dockerfile +++ b/8.4-rc/alpine3.22/fpm/Dockerfile @@ -201,6 +201,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.4-rc/alpine3.22/fpm/docker-php-ext-install b/8.4-rc/alpine3.22/fpm/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.4-rc/alpine3.22/fpm/docker-php-ext-install +++ b/8.4-rc/alpine3.22/fpm/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.4-rc/alpine3.22/zts/Dockerfile b/8.4-rc/alpine3.22/zts/Dockerfile index a7039e2196..d08d4dfafe 100644 --- a/8.4-rc/alpine3.22/zts/Dockerfile +++ b/8.4-rc/alpine3.22/zts/Dockerfile @@ -203,6 +203,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.4-rc/alpine3.22/zts/docker-php-ext-install b/8.4-rc/alpine3.22/zts/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.4-rc/alpine3.22/zts/docker-php-ext-install +++ b/8.4-rc/alpine3.22/zts/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.4-rc/bookworm/apache/Dockerfile b/8.4-rc/bookworm/apache/Dockerfile index 63dc9ae08f..a23047def4 100644 --- a/8.4-rc/bookworm/apache/Dockerfile +++ b/8.4-rc/bookworm/apache/Dockerfile @@ -276,6 +276,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.4-rc/bookworm/apache/docker-php-ext-install b/8.4-rc/bookworm/apache/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.4-rc/bookworm/apache/docker-php-ext-install +++ b/8.4-rc/bookworm/apache/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.4-rc/bookworm/cli/Dockerfile b/8.4-rc/bookworm/cli/Dockerfile index 9e6eacc671..6ca3d5f714 100644 --- a/8.4-rc/bookworm/cli/Dockerfile +++ b/8.4-rc/bookworm/cli/Dockerfile @@ -215,6 +215,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.4-rc/bookworm/cli/docker-php-ext-install b/8.4-rc/bookworm/cli/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.4-rc/bookworm/cli/docker-php-ext-install +++ b/8.4-rc/bookworm/cli/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.4-rc/bookworm/fpm/Dockerfile b/8.4-rc/bookworm/fpm/Dockerfile index 1a35c1ef66..6c6108f527 100644 --- a/8.4-rc/bookworm/fpm/Dockerfile +++ b/8.4-rc/bookworm/fpm/Dockerfile @@ -217,6 +217,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.4-rc/bookworm/fpm/docker-php-ext-install b/8.4-rc/bookworm/fpm/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.4-rc/bookworm/fpm/docker-php-ext-install +++ b/8.4-rc/bookworm/fpm/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.4-rc/bookworm/zts/Dockerfile b/8.4-rc/bookworm/zts/Dockerfile index e0ea6cc7eb..cff5a04794 100644 --- a/8.4-rc/bookworm/zts/Dockerfile +++ b/8.4-rc/bookworm/zts/Dockerfile @@ -219,6 +219,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.4-rc/bookworm/zts/docker-php-ext-install b/8.4-rc/bookworm/zts/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.4-rc/bookworm/zts/docker-php-ext-install +++ b/8.4-rc/bookworm/zts/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.4-rc/bullseye/apache/Dockerfile b/8.4-rc/bullseye/apache/Dockerfile index 75889d42dd..6e3b34c2e6 100644 --- a/8.4-rc/bullseye/apache/Dockerfile +++ b/8.4-rc/bullseye/apache/Dockerfile @@ -274,6 +274,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.4-rc/bullseye/apache/docker-php-ext-install b/8.4-rc/bullseye/apache/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.4-rc/bullseye/apache/docker-php-ext-install +++ b/8.4-rc/bullseye/apache/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.4-rc/bullseye/cli/Dockerfile b/8.4-rc/bullseye/cli/Dockerfile index ff120c119a..dec2fcf974 100644 --- a/8.4-rc/bullseye/cli/Dockerfile +++ b/8.4-rc/bullseye/cli/Dockerfile @@ -215,6 +215,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.4-rc/bullseye/cli/docker-php-ext-install b/8.4-rc/bullseye/cli/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.4-rc/bullseye/cli/docker-php-ext-install +++ b/8.4-rc/bullseye/cli/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.4-rc/bullseye/fpm/Dockerfile b/8.4-rc/bullseye/fpm/Dockerfile index 4fbdc7f801..af62cbe180 100644 --- a/8.4-rc/bullseye/fpm/Dockerfile +++ b/8.4-rc/bullseye/fpm/Dockerfile @@ -217,6 +217,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.4-rc/bullseye/fpm/docker-php-ext-install b/8.4-rc/bullseye/fpm/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.4-rc/bullseye/fpm/docker-php-ext-install +++ b/8.4-rc/bullseye/fpm/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.4-rc/bullseye/zts/Dockerfile b/8.4-rc/bullseye/zts/Dockerfile index 1de95d3ef9..8b8bd69477 100644 --- a/8.4-rc/bullseye/zts/Dockerfile +++ b/8.4-rc/bullseye/zts/Dockerfile @@ -219,6 +219,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.4-rc/bullseye/zts/docker-php-ext-install b/8.4-rc/bullseye/zts/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.4-rc/bullseye/zts/docker-php-ext-install +++ b/8.4-rc/bullseye/zts/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.4/alpine3.21/cli/Dockerfile b/8.4/alpine3.21/cli/Dockerfile index e405ac0f9a..9b4d2bd51c 100644 --- a/8.4/alpine3.21/cli/Dockerfile +++ b/8.4/alpine3.21/cli/Dockerfile @@ -196,6 +196,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.4/alpine3.21/cli/docker-php-ext-install b/8.4/alpine3.21/cli/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.4/alpine3.21/cli/docker-php-ext-install +++ b/8.4/alpine3.21/cli/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.4/alpine3.21/fpm/Dockerfile b/8.4/alpine3.21/fpm/Dockerfile index 3f9c2eb474..f63833f22c 100644 --- a/8.4/alpine3.21/fpm/Dockerfile +++ b/8.4/alpine3.21/fpm/Dockerfile @@ -201,6 +201,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.4/alpine3.21/fpm/docker-php-ext-install b/8.4/alpine3.21/fpm/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.4/alpine3.21/fpm/docker-php-ext-install +++ b/8.4/alpine3.21/fpm/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.4/alpine3.21/zts/Dockerfile b/8.4/alpine3.21/zts/Dockerfile index 955242e06d..4d3f1c0782 100644 --- a/8.4/alpine3.21/zts/Dockerfile +++ b/8.4/alpine3.21/zts/Dockerfile @@ -203,6 +203,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.4/alpine3.21/zts/docker-php-ext-install b/8.4/alpine3.21/zts/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.4/alpine3.21/zts/docker-php-ext-install +++ b/8.4/alpine3.21/zts/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.4/alpine3.22/cli/Dockerfile b/8.4/alpine3.22/cli/Dockerfile index 2afa8f29fe..ad38de9ec2 100644 --- a/8.4/alpine3.22/cli/Dockerfile +++ b/8.4/alpine3.22/cli/Dockerfile @@ -196,6 +196,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.4/alpine3.22/cli/docker-php-ext-install b/8.4/alpine3.22/cli/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.4/alpine3.22/cli/docker-php-ext-install +++ b/8.4/alpine3.22/cli/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.4/alpine3.22/fpm/Dockerfile b/8.4/alpine3.22/fpm/Dockerfile index dd4932b68d..58bb23ae82 100644 --- a/8.4/alpine3.22/fpm/Dockerfile +++ b/8.4/alpine3.22/fpm/Dockerfile @@ -201,6 +201,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.4/alpine3.22/fpm/docker-php-ext-install b/8.4/alpine3.22/fpm/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.4/alpine3.22/fpm/docker-php-ext-install +++ b/8.4/alpine3.22/fpm/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.4/alpine3.22/zts/Dockerfile b/8.4/alpine3.22/zts/Dockerfile index f51a98bc2e..17f736bfbd 100644 --- a/8.4/alpine3.22/zts/Dockerfile +++ b/8.4/alpine3.22/zts/Dockerfile @@ -211,6 +211,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.4/alpine3.22/zts/docker-php-ext-install b/8.4/alpine3.22/zts/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.4/alpine3.22/zts/docker-php-ext-install +++ b/8.4/alpine3.22/zts/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.4/bookworm/apache/Dockerfile b/8.4/bookworm/apache/Dockerfile index 1165cea807..65c8ed052c 100644 --- a/8.4/bookworm/apache/Dockerfile +++ b/8.4/bookworm/apache/Dockerfile @@ -276,6 +276,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.4/bookworm/apache/docker-php-ext-install b/8.4/bookworm/apache/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.4/bookworm/apache/docker-php-ext-install +++ b/8.4/bookworm/apache/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.4/bookworm/cli/Dockerfile b/8.4/bookworm/cli/Dockerfile index 72699d31d7..5b8ca25d58 100644 --- a/8.4/bookworm/cli/Dockerfile +++ b/8.4/bookworm/cli/Dockerfile @@ -215,6 +215,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.4/bookworm/cli/docker-php-ext-install b/8.4/bookworm/cli/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.4/bookworm/cli/docker-php-ext-install +++ b/8.4/bookworm/cli/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.4/bookworm/fpm/Dockerfile b/8.4/bookworm/fpm/Dockerfile index 391d1bf782..4778819e17 100644 --- a/8.4/bookworm/fpm/Dockerfile +++ b/8.4/bookworm/fpm/Dockerfile @@ -217,6 +217,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.4/bookworm/fpm/docker-php-ext-install b/8.4/bookworm/fpm/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.4/bookworm/fpm/docker-php-ext-install +++ b/8.4/bookworm/fpm/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.4/bookworm/zts/Dockerfile b/8.4/bookworm/zts/Dockerfile index 49e3d10b0a..3628611d5f 100644 --- a/8.4/bookworm/zts/Dockerfile +++ b/8.4/bookworm/zts/Dockerfile @@ -219,6 +219,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.4/bookworm/zts/docker-php-ext-install b/8.4/bookworm/zts/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.4/bookworm/zts/docker-php-ext-install +++ b/8.4/bookworm/zts/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.4/bullseye/apache/Dockerfile b/8.4/bullseye/apache/Dockerfile index b007b97114..3e2b1b49fc 100644 --- a/8.4/bullseye/apache/Dockerfile +++ b/8.4/bullseye/apache/Dockerfile @@ -274,6 +274,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.4/bullseye/apache/docker-php-ext-install b/8.4/bullseye/apache/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.4/bullseye/apache/docker-php-ext-install +++ b/8.4/bullseye/apache/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.4/bullseye/cli/Dockerfile b/8.4/bullseye/cli/Dockerfile index f4221a2d35..1e43a1892e 100644 --- a/8.4/bullseye/cli/Dockerfile +++ b/8.4/bullseye/cli/Dockerfile @@ -215,6 +215,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.4/bullseye/cli/docker-php-ext-install b/8.4/bullseye/cli/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.4/bullseye/cli/docker-php-ext-install +++ b/8.4/bullseye/cli/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.4/bullseye/fpm/Dockerfile b/8.4/bullseye/fpm/Dockerfile index a34ba51fb9..08911c7840 100644 --- a/8.4/bullseye/fpm/Dockerfile +++ b/8.4/bullseye/fpm/Dockerfile @@ -217,6 +217,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.4/bullseye/fpm/docker-php-ext-install b/8.4/bullseye/fpm/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.4/bullseye/fpm/docker-php-ext-install +++ b/8.4/bullseye/fpm/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/8.4/bullseye/zts/Dockerfile b/8.4/bullseye/zts/Dockerfile index bcd3f3ba27..468194ee9b 100644 --- a/8.4/bullseye/zts/Dockerfile +++ b/8.4/bullseye/zts/Dockerfile @@ -219,6 +219,9 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/8.4/bullseye/zts/docker-php-ext-install b/8.4/bullseye/zts/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/8.4/bullseye/zts/docker-php-ext-install +++ b/8.4/bullseye/zts/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean diff --git a/Dockerfile-linux.template b/Dockerfile-linux.template index 8441c7ab62..5804df3e51 100644 --- a/Dockerfile-linux.template +++ b/Dockerfile-linux.template @@ -516,6 +516,11 @@ RUN set -eux; \ COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ +{{ if rcVersion | IN("8.1", "8.2", "8.3", "8.4") then ( -}} +# enable OPcache by default (https://wiki.php.net/rfc/make_opcache_required) +RUN docker-php-ext-enable opcache +{{ ) end -}} + # sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598) RUN docker-php-ext-enable sodium diff --git a/docker-php-ext-install b/docker-php-ext-install index aa0b96c5a3..fbf44849c0 100755 --- a/docker-php-ext-install +++ b/docker-php-ext-install @@ -126,7 +126,7 @@ for ext in $exts; do find modules \ -maxdepth 1 \ -name '*.so' \ - -exec basename '{}' ';' \ + -exec basename '{}' '.so' ';' \ | xargs -r docker-php-ext-enable ${iniName:+--ini-name "$iniName"} make -j"$j" clean