diff --git a/8.1/alpine3.21/cli/Dockerfile b/8.1/alpine3.21/cli/Dockerfile index 0f1c34a9a..e580b3a17 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 aa0b96c5a..fbf44849c 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 73c7f784d..8b32370f1 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 aa0b96c5a..fbf44849c 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 90d4c675e..6ef9662ae 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 aa0b96c5a..fbf44849c 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 c6271d30c..4c8ed5bab 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 aa0b96c5a..fbf44849c 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 89853a107..6e4f4d009 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 aa0b96c5a..fbf44849c 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 168800df0..3087e0214 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 aa0b96c5a..fbf44849c 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 4aff07ca1..5854c2294 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 aa0b96c5a..fbf44849c 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 0448b73d4..0badc91ff 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 aa0b96c5a..fbf44849c 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 80ca00fc3..37e5abd43 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 aa0b96c5a..fbf44849c 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 10ee4ea0a..e4fda4e3e 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 aa0b96c5a..fbf44849c 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 08675ef71..5823c7524 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 aa0b96c5a..fbf44849c 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 105a4ce24..11fc84845 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 aa0b96c5a..fbf44849c 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 04aacf655..ea88f65a4 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 aa0b96c5a..fbf44849c 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 e86076f92..2103024cd 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 aa0b96c5a..fbf44849c 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 4a7770991..cc90466ed 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 aa0b96c5a..fbf44849c 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 314049310..bb08205c2 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 aa0b96c5a..fbf44849c 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 956e7a30c..9abd80217 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 aa0b96c5a..fbf44849c 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 6df54d820..5d1cab60a 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 aa0b96c5a..fbf44849c 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 fdcfe60ed..6f19994b0 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 aa0b96c5a..fbf44849c 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 093218036..cf50faf3c 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 aa0b96c5a..fbf44849c 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 f12fd4dea..30bfdc847 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 aa0b96c5a..fbf44849c 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 e1746da51..16d0feec1 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 aa0b96c5a..fbf44849c 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 cf4ec38ea..0cd6c83a9 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 aa0b96c5a..fbf44849c 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 c9c4d8371..1fa57d4e5 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 aa0b96c5a..fbf44849c 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 c3b736234..b302b1e1a 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 aa0b96c5a..fbf44849c 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 101a068a0..67b55cb7c 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 aa0b96c5a..fbf44849c 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 aa1cf5316..2c9b9801d 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 aa0b96c5a..fbf44849c 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 9296bbfe1..20fc5085e 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 aa0b96c5a..fbf44849c 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 acbba434f..6971a5819 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 aa0b96c5a..fbf44849c 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 bfbbe05bb..2a9019dae 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 aa0b96c5a..fbf44849c 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 06b237987..6d0ef7ecf 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 aa0b96c5a..fbf44849c 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 bd6d3ef8c..8e73da606 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 aa0b96c5a..fbf44849c 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 df5ca007a..badf8f582 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 aa0b96c5a..fbf44849c 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 9b5e293c4..0ca9fe02a 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 aa0b96c5a..fbf44849c 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 c8f684d7d..44a2f81af 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 aa0b96c5a..fbf44849c 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 83e2a2a44..9dd2994a6 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 aa0b96c5a..fbf44849c 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 f2a89ef4b..87d6388e9 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 aa0b96c5a..fbf44849c 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 b49345931..35b2ac9e5 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 aa0b96c5a..fbf44849c 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 5cdbb6d40..e3b0f34a6 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 aa0b96c5a..fbf44849c 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 c15d3b333..4ef124180 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 aa0b96c5a..fbf44849c 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 918643f38..93632d455 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 aa0b96c5a..fbf44849c 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 0020a53f1..d806eda8e 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 aa0b96c5a..fbf44849c 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 30e2fbf3e..fbdc640dc 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 aa0b96c5a..fbf44849c 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 efe740841..360bac6c7 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 aa0b96c5a..fbf44849c 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 b5a102bbb..f14bf02ca 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 aa0b96c5a..fbf44849c 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 adad4cb23..768b347ca 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 aa0b96c5a..fbf44849c 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 1d280e5af..05c37a347 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 aa0b96c5a..fbf44849c 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 816d9d495..e4a3b31dd 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 aa0b96c5a..fbf44849c 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 f01801262..a9cbb492b 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 aa0b96c5a..fbf44849c 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 573b2dcab..bba6a0ca7 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 aa0b96c5a..fbf44849c 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 cd479c22c..6f54e3f78 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 aa0b96c5a..fbf44849c 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 93510f1eb..84db527ff 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 aa0b96c5a..fbf44849c 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 f3cb81c9b..0d3f91414 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 aa0b96c5a..fbf44849c 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 4f0246ddd..1ccc85bad 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 aa0b96c5a..fbf44849c 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 a00ed1c06..7df3e992d 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 aa0b96c5a..fbf44849c 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 0953d0c81..bf74d67b5 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 aa0b96c5a..fbf44849c 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 8972d1bd4..d9d3e9f64 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 aa0b96c5a..fbf44849c 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 ca7913cb0..f81832cad 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 aa0b96c5a..fbf44849c 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 c25677773..c69fc3430 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 aa0b96c5a..fbf44849c 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 be4ce98e5..cd6340b12 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 aa0b96c5a..fbf44849c 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 08fe6b8b2..065677449 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 aa0b96c5a..fbf44849c 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 a7039e219..d08d4dfaf 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 aa0b96c5a..fbf44849c 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 63dc9ae08..a23047def 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 aa0b96c5a..fbf44849c 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 9e6eacc67..6ca3d5f71 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 aa0b96c5a..fbf44849c 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 1a35c1ef6..6c6108f52 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 aa0b96c5a..fbf44849c 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 e0ea6cc7e..cff5a0479 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 aa0b96c5a..fbf44849c 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 75889d42d..6e3b34c2e 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 aa0b96c5a..fbf44849c 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 ff120c119..dec2fcf97 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 aa0b96c5a..fbf44849c 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 4fbdc7f80..af62cbe18 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 aa0b96c5a..fbf44849c 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 1de95d3ef..8b8bd6947 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 aa0b96c5a..fbf44849c 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 e405ac0f9..9b4d2bd51 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 aa0b96c5a..fbf44849c 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 3f9c2eb47..f63833f22 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 aa0b96c5a..fbf44849c 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 955242e06..4d3f1c078 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 aa0b96c5a..fbf44849c 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 2afa8f29f..ad38de9ec 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 aa0b96c5a..fbf44849c 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 dd4932b68..58bb23ae8 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 aa0b96c5a..fbf44849c 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 f51a98bc2..17f736bfb 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 aa0b96c5a..fbf44849c 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 1165cea80..65c8ed052 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 aa0b96c5a..fbf44849c 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 72699d31d..5b8ca25d5 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 aa0b96c5a..fbf44849c 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 391d1bf78..4778819e1 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 aa0b96c5a..fbf44849c 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 49e3d10b0..3628611d5 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 aa0b96c5a..fbf44849c 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 b007b9711..3e2b1b49f 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 aa0b96c5a..fbf44849c 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 f4221a2d3..1e43a1892 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 aa0b96c5a..fbf44849c 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 a34ba51fb..08911c784 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 aa0b96c5a..fbf44849c 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 bcd3f3ba2..468194ee9 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 aa0b96c5a..fbf44849c 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 8441c7ab6..5804df3e5 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 aa0b96c5a..fbf44849c 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