diff --git a/7.3/alpine3.13/cli/Dockerfile b/7.3/alpine3.13/cli/Dockerfile index 8e69db0e5..38c855da5 100644 --- a/7.3/alpine3.13/cli/Dockerfile +++ b/7.3/alpine3.13/cli/Dockerfile @@ -147,8 +147,6 @@ RUN set -eux; \ # bundled pcre does not support JIT on s390x # https://manpages.debian.org/bullseye/libpcre3-dev/pcrejit.3.en.html#AVAILABILITY_OF_JIT_SUPPORT $(test "$gnuArch" = 's390x-linux-musl' && echo '--without-pcre-jit') \ - \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.3/alpine3.13/fpm/Dockerfile b/7.3/alpine3.13/fpm/Dockerfile index b71bfc178..e4d9a55c3 100644 --- a/7.3/alpine3.13/fpm/Dockerfile +++ b/7.3/alpine3.13/fpm/Dockerfile @@ -46,8 +46,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -150,7 +148,11 @@ RUN set -eux; \ # https://manpages.debian.org/bullseye/libpcre3-dev/pcrejit.3.en.html#AVAILABILITY_OF_JIT_SUPPORT $(test "$gnuArch" = 's390x-linux-musl' && echo '--without-pcre-jit') \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --enable-fpm \ + --with-fpm-user=www-data \ + --with-fpm-group=www-data \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.3/alpine3.13/zts/Dockerfile b/7.3/alpine3.13/zts/Dockerfile index cd957c4ae..55e0bc819 100644 --- a/7.3/alpine3.13/zts/Dockerfile +++ b/7.3/alpine3.13/zts/Dockerfile @@ -46,8 +46,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-maintainer-zts --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -150,7 +148,9 @@ RUN set -eux; \ # https://manpages.debian.org/bullseye/libpcre3-dev/pcrejit.3.en.html#AVAILABILITY_OF_JIT_SUPPORT $(test "$gnuArch" = 's390x-linux-musl' && echo '--without-pcre-jit') \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --enable-maintainer-zts \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.3/alpine3.14/cli/Dockerfile b/7.3/alpine3.14/cli/Dockerfile index a75384f2e..923c6ebff 100644 --- a/7.3/alpine3.14/cli/Dockerfile +++ b/7.3/alpine3.14/cli/Dockerfile @@ -146,8 +146,6 @@ RUN set -eux; \ # bundled pcre does not support JIT on s390x # https://manpages.debian.org/bullseye/libpcre3-dev/pcrejit.3.en.html#AVAILABILITY_OF_JIT_SUPPORT $(test "$gnuArch" = 's390x-linux-musl' && echo '--without-pcre-jit') \ - \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.3/alpine3.14/fpm/Dockerfile b/7.3/alpine3.14/fpm/Dockerfile index a3ae89a7e..053039daa 100644 --- a/7.3/alpine3.14/fpm/Dockerfile +++ b/7.3/alpine3.14/fpm/Dockerfile @@ -45,8 +45,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -149,7 +147,11 @@ RUN set -eux; \ # https://manpages.debian.org/bullseye/libpcre3-dev/pcrejit.3.en.html#AVAILABILITY_OF_JIT_SUPPORT $(test "$gnuArch" = 's390x-linux-musl' && echo '--without-pcre-jit') \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --enable-fpm \ + --with-fpm-user=www-data \ + --with-fpm-group=www-data \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.3/alpine3.14/zts/Dockerfile b/7.3/alpine3.14/zts/Dockerfile index 319d790f4..b321d8e56 100644 --- a/7.3/alpine3.14/zts/Dockerfile +++ b/7.3/alpine3.14/zts/Dockerfile @@ -45,8 +45,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-maintainer-zts --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -149,7 +147,9 @@ RUN set -eux; \ # https://manpages.debian.org/bullseye/libpcre3-dev/pcrejit.3.en.html#AVAILABILITY_OF_JIT_SUPPORT $(test "$gnuArch" = 's390x-linux-musl' && echo '--without-pcre-jit') \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --enable-maintainer-zts \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.3/bullseye/apache/Dockerfile b/7.3/bullseye/apache/Dockerfile index cf36f8918..61943ca66 100644 --- a/7.3/bullseye/apache/Dockerfile +++ b/7.3/bullseye/apache/Dockerfile @@ -106,9 +106,6 @@ RUN { \ } | tee "$APACHE_CONFDIR/conf-available/docker-php.conf" \ && a2enconf docker-php -ENV PHP_EXTRA_BUILD_DEPS apache2-dev -ENV PHP_EXTRA_CONFIGURE_ARGS --with-apxs2 --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -163,7 +160,7 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ + apache2-dev \ libargon2-dev \ libcurl4-openssl-dev \ libreadline-dev \ @@ -225,7 +222,9 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --with-apxs2 \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.3/bullseye/cli/Dockerfile b/7.3/bullseye/cli/Dockerfile index adaead961..f045d8db6 100644 --- a/7.3/bullseye/cli/Dockerfile +++ b/7.3/bullseye/cli/Dockerfile @@ -48,9 +48,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -# https://github.com/docker-library/php/pull/939#issuecomment-730501748 -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-embed - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -105,7 +102,6 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ libargon2-dev \ libcurl4-openssl-dev \ libreadline-dev \ @@ -167,7 +163,8 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ +# https://github.com/docker-library/php/pull/939#issuecomment-730501748 + --enable-embed \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.3/bullseye/fpm/Dockerfile b/7.3/bullseye/fpm/Dockerfile index a362dca5f..257c196af 100644 --- a/7.3/bullseye/fpm/Dockerfile +++ b/7.3/bullseye/fpm/Dockerfile @@ -48,8 +48,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -104,7 +102,6 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ libargon2-dev \ libcurl4-openssl-dev \ libreadline-dev \ @@ -166,7 +163,11 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --enable-fpm \ + --with-fpm-user=www-data \ + --with-fpm-group=www-data \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.3/bullseye/zts/Dockerfile b/7.3/bullseye/zts/Dockerfile index f393fed8d..c647006d0 100644 --- a/7.3/bullseye/zts/Dockerfile +++ b/7.3/bullseye/zts/Dockerfile @@ -48,8 +48,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-maintainer-zts --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -104,7 +102,6 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ libargon2-dev \ libcurl4-openssl-dev \ libreadline-dev \ @@ -166,7 +163,12 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ +# https://github.com/docker-library/php/pull/939#issuecomment-730501748 + --enable-embed \ + \ + --enable-maintainer-zts \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.3/buster/apache/Dockerfile b/7.3/buster/apache/Dockerfile index 7b667a46f..31b993767 100644 --- a/7.3/buster/apache/Dockerfile +++ b/7.3/buster/apache/Dockerfile @@ -106,9 +106,6 @@ RUN { \ } | tee "$APACHE_CONFDIR/conf-available/docker-php.conf" \ && a2enconf docker-php -ENV PHP_EXTRA_BUILD_DEPS apache2-dev -ENV PHP_EXTRA_CONFIGURE_ARGS --with-apxs2 --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -163,7 +160,7 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ + apache2-dev \ libargon2-dev \ libcurl4-openssl-dev \ libreadline-dev \ @@ -225,7 +222,9 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --with-apxs2 \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.3/buster/cli/Dockerfile b/7.3/buster/cli/Dockerfile index cfc44c5f5..9ab90ddb1 100644 --- a/7.3/buster/cli/Dockerfile +++ b/7.3/buster/cli/Dockerfile @@ -48,9 +48,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -# https://github.com/docker-library/php/pull/939#issuecomment-730501748 -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-embed - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -105,7 +102,6 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ libargon2-dev \ libcurl4-openssl-dev \ libreadline-dev \ @@ -167,7 +163,8 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ +# https://github.com/docker-library/php/pull/939#issuecomment-730501748 + --enable-embed \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.3/buster/fpm/Dockerfile b/7.3/buster/fpm/Dockerfile index 0ee2c44c5..0befd5436 100644 --- a/7.3/buster/fpm/Dockerfile +++ b/7.3/buster/fpm/Dockerfile @@ -48,8 +48,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -104,7 +102,6 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ libargon2-dev \ libcurl4-openssl-dev \ libreadline-dev \ @@ -166,7 +163,11 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --enable-fpm \ + --with-fpm-user=www-data \ + --with-fpm-group=www-data \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.3/buster/zts/Dockerfile b/7.3/buster/zts/Dockerfile index 10c5977ac..6891dc276 100644 --- a/7.3/buster/zts/Dockerfile +++ b/7.3/buster/zts/Dockerfile @@ -48,8 +48,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-maintainer-zts --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -104,7 +102,6 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ libargon2-dev \ libcurl4-openssl-dev \ libreadline-dev \ @@ -166,7 +163,12 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ +# https://github.com/docker-library/php/pull/939#issuecomment-730501748 + --enable-embed \ + \ + --enable-maintainer-zts \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.4/alpine3.13/cli/Dockerfile b/7.4/alpine3.13/cli/Dockerfile index 563c96cb1..32c1c7ec5 100644 --- a/7.4/alpine3.13/cli/Dockerfile +++ b/7.4/alpine3.13/cli/Dockerfile @@ -152,8 +152,6 @@ RUN set -eux; \ # bundled pcre does not support JIT on s390x # https://manpages.debian.org/bullseye/libpcre3-dev/pcrejit.3.en.html#AVAILABILITY_OF_JIT_SUPPORT $(test "$gnuArch" = 's390x-linux-musl' && echo '--without-pcre-jit') \ - \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.4/alpine3.13/fpm/Dockerfile b/7.4/alpine3.13/fpm/Dockerfile index 699444ef2..5e6917c1f 100644 --- a/7.4/alpine3.13/fpm/Dockerfile +++ b/7.4/alpine3.13/fpm/Dockerfile @@ -46,8 +46,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -155,7 +153,11 @@ RUN set -eux; \ # https://manpages.debian.org/bullseye/libpcre3-dev/pcrejit.3.en.html#AVAILABILITY_OF_JIT_SUPPORT $(test "$gnuArch" = 's390x-linux-musl' && echo '--without-pcre-jit') \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --enable-fpm \ + --with-fpm-user=www-data \ + --with-fpm-group=www-data \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.4/alpine3.13/zts/Dockerfile b/7.4/alpine3.13/zts/Dockerfile index 4fb1e9ef7..174fb8737 100644 --- a/7.4/alpine3.13/zts/Dockerfile +++ b/7.4/alpine3.13/zts/Dockerfile @@ -46,8 +46,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-maintainer-zts --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -155,7 +153,9 @@ RUN set -eux; \ # https://manpages.debian.org/bullseye/libpcre3-dev/pcrejit.3.en.html#AVAILABILITY_OF_JIT_SUPPORT $(test "$gnuArch" = 's390x-linux-musl' && echo '--without-pcre-jit') \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --enable-maintainer-zts \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.4/alpine3.14/cli/Dockerfile b/7.4/alpine3.14/cli/Dockerfile index 6349d051f..31b27a915 100644 --- a/7.4/alpine3.14/cli/Dockerfile +++ b/7.4/alpine3.14/cli/Dockerfile @@ -151,8 +151,6 @@ RUN set -eux; \ # bundled pcre does not support JIT on s390x # https://manpages.debian.org/bullseye/libpcre3-dev/pcrejit.3.en.html#AVAILABILITY_OF_JIT_SUPPORT $(test "$gnuArch" = 's390x-linux-musl' && echo '--without-pcre-jit') \ - \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.4/alpine3.14/fpm/Dockerfile b/7.4/alpine3.14/fpm/Dockerfile index d4f027427..68cf3cbb7 100644 --- a/7.4/alpine3.14/fpm/Dockerfile +++ b/7.4/alpine3.14/fpm/Dockerfile @@ -45,8 +45,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -154,7 +152,11 @@ RUN set -eux; \ # https://manpages.debian.org/bullseye/libpcre3-dev/pcrejit.3.en.html#AVAILABILITY_OF_JIT_SUPPORT $(test "$gnuArch" = 's390x-linux-musl' && echo '--without-pcre-jit') \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --enable-fpm \ + --with-fpm-user=www-data \ + --with-fpm-group=www-data \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.4/alpine3.14/zts/Dockerfile b/7.4/alpine3.14/zts/Dockerfile index dd5a0927f..130286a3d 100644 --- a/7.4/alpine3.14/zts/Dockerfile +++ b/7.4/alpine3.14/zts/Dockerfile @@ -45,8 +45,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-maintainer-zts --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -154,7 +152,9 @@ RUN set -eux; \ # https://manpages.debian.org/bullseye/libpcre3-dev/pcrejit.3.en.html#AVAILABILITY_OF_JIT_SUPPORT $(test "$gnuArch" = 's390x-linux-musl' && echo '--without-pcre-jit') \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --enable-maintainer-zts \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.4/bullseye/apache/Dockerfile b/7.4/bullseye/apache/Dockerfile index 0d0ddb598..2fc6224ee 100644 --- a/7.4/bullseye/apache/Dockerfile +++ b/7.4/bullseye/apache/Dockerfile @@ -106,9 +106,6 @@ RUN { \ } | tee "$APACHE_CONFDIR/conf-available/docker-php.conf" \ && a2enconf docker-php -ENV PHP_EXTRA_BUILD_DEPS apache2-dev -ENV PHP_EXTRA_CONFIGURE_ARGS --with-apxs2 --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -163,7 +160,7 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ + apache2-dev \ libargon2-dev \ libcurl4-openssl-dev \ libonig-dev \ @@ -229,7 +226,9 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --with-apxs2 \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.4/bullseye/cli/Dockerfile b/7.4/bullseye/cli/Dockerfile index 8fec24b26..08167d272 100644 --- a/7.4/bullseye/cli/Dockerfile +++ b/7.4/bullseye/cli/Dockerfile @@ -48,9 +48,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -# https://github.com/docker-library/php/pull/939#issuecomment-730501748 -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-embed - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -105,7 +102,6 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ libargon2-dev \ libcurl4-openssl-dev \ libonig-dev \ @@ -171,7 +167,8 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ +# https://github.com/docker-library/php/pull/939#issuecomment-730501748 + --enable-embed \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.4/bullseye/fpm/Dockerfile b/7.4/bullseye/fpm/Dockerfile index b951fdc7a..4d77fd0b0 100644 --- a/7.4/bullseye/fpm/Dockerfile +++ b/7.4/bullseye/fpm/Dockerfile @@ -48,8 +48,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -104,7 +102,6 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ libargon2-dev \ libcurl4-openssl-dev \ libonig-dev \ @@ -170,7 +167,11 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --enable-fpm \ + --with-fpm-user=www-data \ + --with-fpm-group=www-data \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.4/bullseye/zts/Dockerfile b/7.4/bullseye/zts/Dockerfile index fc804f0ef..200fc5cc2 100644 --- a/7.4/bullseye/zts/Dockerfile +++ b/7.4/bullseye/zts/Dockerfile @@ -48,8 +48,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-maintainer-zts --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -104,7 +102,6 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ libargon2-dev \ libcurl4-openssl-dev \ libonig-dev \ @@ -170,7 +167,12 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ +# https://github.com/docker-library/php/pull/939#issuecomment-730501748 + --enable-embed \ + \ + --enable-maintainer-zts \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.4/buster/apache/Dockerfile b/7.4/buster/apache/Dockerfile index 7d0f94a54..040daf839 100644 --- a/7.4/buster/apache/Dockerfile +++ b/7.4/buster/apache/Dockerfile @@ -106,9 +106,6 @@ RUN { \ } | tee "$APACHE_CONFDIR/conf-available/docker-php.conf" \ && a2enconf docker-php -ENV PHP_EXTRA_BUILD_DEPS apache2-dev -ENV PHP_EXTRA_CONFIGURE_ARGS --with-apxs2 --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -163,7 +160,7 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ + apache2-dev \ libargon2-dev \ libcurl4-openssl-dev \ libonig-dev \ @@ -229,7 +226,9 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --with-apxs2 \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.4/buster/cli/Dockerfile b/7.4/buster/cli/Dockerfile index f38158397..532d3585c 100644 --- a/7.4/buster/cli/Dockerfile +++ b/7.4/buster/cli/Dockerfile @@ -48,9 +48,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -# https://github.com/docker-library/php/pull/939#issuecomment-730501748 -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-embed - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -105,7 +102,6 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ libargon2-dev \ libcurl4-openssl-dev \ libonig-dev \ @@ -171,7 +167,8 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ +# https://github.com/docker-library/php/pull/939#issuecomment-730501748 + --enable-embed \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.4/buster/fpm/Dockerfile b/7.4/buster/fpm/Dockerfile index 231c60069..0c5560ee5 100644 --- a/7.4/buster/fpm/Dockerfile +++ b/7.4/buster/fpm/Dockerfile @@ -48,8 +48,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -104,7 +102,6 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ libargon2-dev \ libcurl4-openssl-dev \ libonig-dev \ @@ -170,7 +167,11 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --enable-fpm \ + --with-fpm-user=www-data \ + --with-fpm-group=www-data \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/7.4/buster/zts/Dockerfile b/7.4/buster/zts/Dockerfile index f30a60a26..f5470b8db 100644 --- a/7.4/buster/zts/Dockerfile +++ b/7.4/buster/zts/Dockerfile @@ -48,8 +48,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-maintainer-zts --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -104,7 +102,6 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ libargon2-dev \ libcurl4-openssl-dev \ libonig-dev \ @@ -170,7 +167,12 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ +# https://github.com/docker-library/php/pull/939#issuecomment-730501748 + --enable-embed \ + \ + --enable-maintainer-zts \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/8.0/alpine3.13/cli/Dockerfile b/8.0/alpine3.13/cli/Dockerfile index 067c0462c..3bf49d4a4 100644 --- a/8.0/alpine3.13/cli/Dockerfile +++ b/8.0/alpine3.13/cli/Dockerfile @@ -152,8 +152,6 @@ RUN set -eux; \ # bundled pcre does not support JIT on s390x # https://manpages.debian.org/bullseye/libpcre3-dev/pcrejit.3.en.html#AVAILABILITY_OF_JIT_SUPPORT $(test "$gnuArch" = 's390x-linux-musl' && echo '--without-pcre-jit') \ - \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/8.0/alpine3.13/fpm/Dockerfile b/8.0/alpine3.13/fpm/Dockerfile index 8ea71296b..adeb697d2 100644 --- a/8.0/alpine3.13/fpm/Dockerfile +++ b/8.0/alpine3.13/fpm/Dockerfile @@ -46,8 +46,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -155,7 +153,11 @@ RUN set -eux; \ # https://manpages.debian.org/bullseye/libpcre3-dev/pcrejit.3.en.html#AVAILABILITY_OF_JIT_SUPPORT $(test "$gnuArch" = 's390x-linux-musl' && echo '--without-pcre-jit') \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --enable-fpm \ + --with-fpm-user=www-data \ + --with-fpm-group=www-data \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/8.0/alpine3.14/cli/Dockerfile b/8.0/alpine3.14/cli/Dockerfile index be793fcfb..7f39ad422 100644 --- a/8.0/alpine3.14/cli/Dockerfile +++ b/8.0/alpine3.14/cli/Dockerfile @@ -151,8 +151,6 @@ RUN set -eux; \ # bundled pcre does not support JIT on s390x # https://manpages.debian.org/bullseye/libpcre3-dev/pcrejit.3.en.html#AVAILABILITY_OF_JIT_SUPPORT $(test "$gnuArch" = 's390x-linux-musl' && echo '--without-pcre-jit') \ - \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/8.0/alpine3.14/fpm/Dockerfile b/8.0/alpine3.14/fpm/Dockerfile index dd2ff63f2..b0c5e99de 100644 --- a/8.0/alpine3.14/fpm/Dockerfile +++ b/8.0/alpine3.14/fpm/Dockerfile @@ -45,8 +45,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -154,7 +152,11 @@ RUN set -eux; \ # https://manpages.debian.org/bullseye/libpcre3-dev/pcrejit.3.en.html#AVAILABILITY_OF_JIT_SUPPORT $(test "$gnuArch" = 's390x-linux-musl' && echo '--without-pcre-jit') \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --enable-fpm \ + --with-fpm-user=www-data \ + --with-fpm-group=www-data \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/8.0/bullseye/apache/Dockerfile b/8.0/bullseye/apache/Dockerfile index 7fed3a54d..6e3b7cf6f 100644 --- a/8.0/bullseye/apache/Dockerfile +++ b/8.0/bullseye/apache/Dockerfile @@ -106,9 +106,6 @@ RUN { \ } | tee "$APACHE_CONFDIR/conf-available/docker-php.conf" \ && a2enconf docker-php -ENV PHP_EXTRA_BUILD_DEPS apache2-dev -ENV PHP_EXTRA_CONFIGURE_ARGS --with-apxs2 --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -163,7 +160,7 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ + apache2-dev \ libargon2-dev \ libcurl4-openssl-dev \ libonig-dev \ @@ -229,7 +226,9 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --with-apxs2 \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/8.0/bullseye/cli/Dockerfile b/8.0/bullseye/cli/Dockerfile index ded09361a..eba1fa85a 100644 --- a/8.0/bullseye/cli/Dockerfile +++ b/8.0/bullseye/cli/Dockerfile @@ -48,9 +48,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -# https://github.com/docker-library/php/pull/939#issuecomment-730501748 -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-embed - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -105,7 +102,6 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ libargon2-dev \ libcurl4-openssl-dev \ libonig-dev \ @@ -171,7 +167,8 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ +# https://github.com/docker-library/php/pull/939#issuecomment-730501748 + --enable-embed \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/8.0/bullseye/fpm/Dockerfile b/8.0/bullseye/fpm/Dockerfile index f10af513d..b7bd48f17 100644 --- a/8.0/bullseye/fpm/Dockerfile +++ b/8.0/bullseye/fpm/Dockerfile @@ -48,8 +48,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -104,7 +102,6 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ libargon2-dev \ libcurl4-openssl-dev \ libonig-dev \ @@ -170,7 +167,11 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --enable-fpm \ + --with-fpm-user=www-data \ + --with-fpm-group=www-data \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/8.0/bullseye/zts/Dockerfile b/8.0/bullseye/zts/Dockerfile index fa620a19c..d496ea188 100644 --- a/8.0/bullseye/zts/Dockerfile +++ b/8.0/bullseye/zts/Dockerfile @@ -48,8 +48,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-zts --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -104,7 +102,6 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ libargon2-dev \ libcurl4-openssl-dev \ libonig-dev \ @@ -170,7 +167,12 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ +# https://github.com/docker-library/php/pull/939#issuecomment-730501748 + --enable-embed \ + \ + --enable-zts \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/8.0/buster/apache/Dockerfile b/8.0/buster/apache/Dockerfile index b983c9fae..42ea41686 100644 --- a/8.0/buster/apache/Dockerfile +++ b/8.0/buster/apache/Dockerfile @@ -106,9 +106,6 @@ RUN { \ } | tee "$APACHE_CONFDIR/conf-available/docker-php.conf" \ && a2enconf docker-php -ENV PHP_EXTRA_BUILD_DEPS apache2-dev -ENV PHP_EXTRA_CONFIGURE_ARGS --with-apxs2 --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -163,7 +160,7 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ + apache2-dev \ libargon2-dev \ libcurl4-openssl-dev \ libonig-dev \ @@ -229,7 +226,9 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --with-apxs2 \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/8.0/buster/cli/Dockerfile b/8.0/buster/cli/Dockerfile index 702a8e805..b65eb8d2b 100644 --- a/8.0/buster/cli/Dockerfile +++ b/8.0/buster/cli/Dockerfile @@ -48,9 +48,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -# https://github.com/docker-library/php/pull/939#issuecomment-730501748 -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-embed - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -105,7 +102,6 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ libargon2-dev \ libcurl4-openssl-dev \ libonig-dev \ @@ -171,7 +167,8 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ +# https://github.com/docker-library/php/pull/939#issuecomment-730501748 + --enable-embed \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/8.0/buster/fpm/Dockerfile b/8.0/buster/fpm/Dockerfile index 97a4e9f3d..bfa073283 100644 --- a/8.0/buster/fpm/Dockerfile +++ b/8.0/buster/fpm/Dockerfile @@ -48,8 +48,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -104,7 +102,6 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ libargon2-dev \ libcurl4-openssl-dev \ libonig-dev \ @@ -170,7 +167,11 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --enable-fpm \ + --with-fpm-user=www-data \ + --with-fpm-group=www-data \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/8.0/buster/zts/Dockerfile b/8.0/buster/zts/Dockerfile index f067b4329..7d5cb334e 100644 --- a/8.0/buster/zts/Dockerfile +++ b/8.0/buster/zts/Dockerfile @@ -48,8 +48,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-zts --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -104,7 +102,6 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ libargon2-dev \ libcurl4-openssl-dev \ libonig-dev \ @@ -170,7 +167,12 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ +# https://github.com/docker-library/php/pull/939#issuecomment-730501748 + --enable-embed \ + \ + --enable-zts \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/8.1-rc/alpine3.13/cli/Dockerfile b/8.1-rc/alpine3.13/cli/Dockerfile index d16e2a7d1..b675a4065 100644 --- a/8.1-rc/alpine3.13/cli/Dockerfile +++ b/8.1-rc/alpine3.13/cli/Dockerfile @@ -152,8 +152,6 @@ RUN set -eux; \ # bundled pcre does not support JIT on s390x # https://manpages.debian.org/bullseye/libpcre3-dev/pcrejit.3.en.html#AVAILABILITY_OF_JIT_SUPPORT $(test "$gnuArch" = 's390x-linux-musl' && echo '--without-pcre-jit') \ - \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/8.1-rc/alpine3.13/fpm/Dockerfile b/8.1-rc/alpine3.13/fpm/Dockerfile index 686b97c94..dbd4f029e 100644 --- a/8.1-rc/alpine3.13/fpm/Dockerfile +++ b/8.1-rc/alpine3.13/fpm/Dockerfile @@ -46,8 +46,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -155,7 +153,11 @@ RUN set -eux; \ # https://manpages.debian.org/bullseye/libpcre3-dev/pcrejit.3.en.html#AVAILABILITY_OF_JIT_SUPPORT $(test "$gnuArch" = 's390x-linux-musl' && echo '--without-pcre-jit') \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --enable-fpm \ + --with-fpm-user=www-data \ + --with-fpm-group=www-data \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/8.1-rc/alpine3.14/cli/Dockerfile b/8.1-rc/alpine3.14/cli/Dockerfile index ef5c791fd..4b6f66ab1 100644 --- a/8.1-rc/alpine3.14/cli/Dockerfile +++ b/8.1-rc/alpine3.14/cli/Dockerfile @@ -151,8 +151,6 @@ RUN set -eux; \ # bundled pcre does not support JIT on s390x # https://manpages.debian.org/bullseye/libpcre3-dev/pcrejit.3.en.html#AVAILABILITY_OF_JIT_SUPPORT $(test "$gnuArch" = 's390x-linux-musl' && echo '--without-pcre-jit') \ - \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/8.1-rc/alpine3.14/fpm/Dockerfile b/8.1-rc/alpine3.14/fpm/Dockerfile index 8e9565f0c..5e2e17b70 100644 --- a/8.1-rc/alpine3.14/fpm/Dockerfile +++ b/8.1-rc/alpine3.14/fpm/Dockerfile @@ -45,8 +45,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -154,7 +152,11 @@ RUN set -eux; \ # https://manpages.debian.org/bullseye/libpcre3-dev/pcrejit.3.en.html#AVAILABILITY_OF_JIT_SUPPORT $(test "$gnuArch" = 's390x-linux-musl' && echo '--without-pcre-jit') \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --enable-fpm \ + --with-fpm-user=www-data \ + --with-fpm-group=www-data \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/8.1-rc/bullseye/apache/Dockerfile b/8.1-rc/bullseye/apache/Dockerfile index 439fb23be..91fb451b2 100644 --- a/8.1-rc/bullseye/apache/Dockerfile +++ b/8.1-rc/bullseye/apache/Dockerfile @@ -106,9 +106,6 @@ RUN { \ } | tee "$APACHE_CONFDIR/conf-available/docker-php.conf" \ && a2enconf docker-php -ENV PHP_EXTRA_BUILD_DEPS apache2-dev -ENV PHP_EXTRA_CONFIGURE_ARGS --with-apxs2 --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -163,7 +160,7 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ + apache2-dev \ libargon2-dev \ libcurl4-openssl-dev \ libonig-dev \ @@ -229,7 +226,9 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --with-apxs2 \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/8.1-rc/bullseye/cli/Dockerfile b/8.1-rc/bullseye/cli/Dockerfile index aebd679c2..bcad83b23 100644 --- a/8.1-rc/bullseye/cli/Dockerfile +++ b/8.1-rc/bullseye/cli/Dockerfile @@ -48,9 +48,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -# https://github.com/docker-library/php/pull/939#issuecomment-730501748 -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-embed - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -105,7 +102,6 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ libargon2-dev \ libcurl4-openssl-dev \ libonig-dev \ @@ -171,7 +167,8 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ +# https://github.com/docker-library/php/pull/939#issuecomment-730501748 + --enable-embed \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/8.1-rc/bullseye/fpm/Dockerfile b/8.1-rc/bullseye/fpm/Dockerfile index 090392eb2..140d94121 100644 --- a/8.1-rc/bullseye/fpm/Dockerfile +++ b/8.1-rc/bullseye/fpm/Dockerfile @@ -48,8 +48,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -104,7 +102,6 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ libargon2-dev \ libcurl4-openssl-dev \ libonig-dev \ @@ -170,7 +167,11 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --enable-fpm \ + --with-fpm-user=www-data \ + --with-fpm-group=www-data \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/8.1-rc/bullseye/zts/Dockerfile b/8.1-rc/bullseye/zts/Dockerfile index 18a1cc394..070f1e5a6 100644 --- a/8.1-rc/bullseye/zts/Dockerfile +++ b/8.1-rc/bullseye/zts/Dockerfile @@ -48,8 +48,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-zts --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -104,7 +102,6 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ libargon2-dev \ libcurl4-openssl-dev \ libonig-dev \ @@ -170,7 +167,12 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ +# https://github.com/docker-library/php/pull/939#issuecomment-730501748 + --enable-embed \ + \ + --enable-zts \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/8.1-rc/buster/apache/Dockerfile b/8.1-rc/buster/apache/Dockerfile index f5ad32d83..0e61c5c87 100644 --- a/8.1-rc/buster/apache/Dockerfile +++ b/8.1-rc/buster/apache/Dockerfile @@ -106,9 +106,6 @@ RUN { \ } | tee "$APACHE_CONFDIR/conf-available/docker-php.conf" \ && a2enconf docker-php -ENV PHP_EXTRA_BUILD_DEPS apache2-dev -ENV PHP_EXTRA_CONFIGURE_ARGS --with-apxs2 --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -163,7 +160,7 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ + apache2-dev \ libargon2-dev \ libcurl4-openssl-dev \ libonig-dev \ @@ -229,7 +226,9 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --with-apxs2 \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/8.1-rc/buster/cli/Dockerfile b/8.1-rc/buster/cli/Dockerfile index 025edf97d..fcb4662da 100644 --- a/8.1-rc/buster/cli/Dockerfile +++ b/8.1-rc/buster/cli/Dockerfile @@ -48,9 +48,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -# https://github.com/docker-library/php/pull/939#issuecomment-730501748 -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-embed - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -105,7 +102,6 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ libargon2-dev \ libcurl4-openssl-dev \ libonig-dev \ @@ -171,7 +167,8 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ +# https://github.com/docker-library/php/pull/939#issuecomment-730501748 + --enable-embed \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/8.1-rc/buster/fpm/Dockerfile b/8.1-rc/buster/fpm/Dockerfile index cacc8375a..fbc0a178b 100644 --- a/8.1-rc/buster/fpm/Dockerfile +++ b/8.1-rc/buster/fpm/Dockerfile @@ -48,8 +48,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -104,7 +102,6 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ libargon2-dev \ libcurl4-openssl-dev \ libonig-dev \ @@ -170,7 +167,11 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ + --enable-fpm \ + --with-fpm-user=www-data \ + --with-fpm-group=www-data \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/8.1-rc/buster/zts/Dockerfile b/8.1-rc/buster/zts/Dockerfile index d1d930a5a..808812739 100644 --- a/8.1-rc/buster/zts/Dockerfile +++ b/8.1-rc/buster/zts/Dockerfile @@ -48,8 +48,6 @@ RUN set -eux; \ chown www-data:www-data /var/www/html; \ chmod 777 /var/www/html -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-zts --disable-cgi - # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) # Enable optimization (-O2) @@ -104,7 +102,6 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - ${PHP_EXTRA_BUILD_DEPS:-} \ libargon2-dev \ libcurl4-openssl-dev \ libonig-dev \ @@ -170,7 +167,12 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ + --disable-cgi \ + \ +# https://github.com/docker-library/php/pull/939#issuecomment-730501748 + --enable-embed \ + \ + --enable-zts \ ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/Dockerfile-linux.template b/Dockerfile-linux.template index d980dc844..f5def0893 100644 --- a/Dockerfile-linux.template +++ b/Dockerfile-linux.template @@ -143,27 +143,6 @@ RUN { \ } | tee "$APACHE_CONFDIR/conf-available/docker-php.conf" \ && a2enconf docker-php -ENV PHP_EXTRA_BUILD_DEPS apache2-dev -ENV PHP_EXTRA_CONFIGURE_ARGS --with-apxs2 --disable-cgi - -{{ ) elif env.variant == "cli" then ( -}} -{{ if is_alpine then "" else ( -}} -# https://github.com/docker-library/php/pull/939#issuecomment-730501748 -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-embed - -{{ ) end -}} -{{ ) elif env.variant == "fpm" then ( -}} -ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --disable-cgi - -{{ ) elif env.variant == "zts" then ( -}} -ENV PHP_EXTRA_CONFIGURE_ARGS {{ - if (.version | version_id) >= ("8" | version_id) then - "--enable-zts" - else - "--enable-maintainer-zts" - end -}} --disable-cgi - {{ ) else "" end -}} # Apply stack smash protection to functions using local buffers and alloca() # Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64) @@ -250,7 +229,7 @@ RUN set -eux; \ if (.version | version_id) >= ("7.4" | version_id) then "oniguruma-dev" else empty end else # debian packages - "${PHP_EXTRA_BUILD_DEPS:-}", + if env.variant == "apache" then "apache2-dev" else empty end, "libargon2-dev", "libcurl4-openssl-dev", "libreadline-dev", @@ -331,8 +310,32 @@ RUN set -eux; \ $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') \ --with-libdir="lib/$debMultiarch" \ {{ ) end -}} +{{ # https://github.com/docker-library/php/issues/280 -}} +{{ if env.variant == "cli" then "" else ( -}} + \ + --disable-cgi \ +{{ ) end -}} +{{ if (env.variant == "cli" or env.variant == "zts") and (is_alpine | not) then ( -}} \ - ${PHP_EXTRA_CONFIGURE_ARGS:-} \ +# https://github.com/docker-library/php/pull/939#issuecomment-730501748 + --enable-embed \ +{{ ) else "" end -}} +{{ if env.variant == "apache" then ( -}} + \ + --with-apxs2 \ +{{ ) elif env.variant == "fpm" then ( -}} + \ + --enable-fpm \ + --with-fpm-user=www-data \ + --with-fpm-group=www-data \ +{{ ) elif env.variant == "zts" then ( -}} + \ +{{ if (.version | version_id) >= ("8" | version_id) then ( -}} + --enable-zts \ +{{ ) else ( -}} + --enable-maintainer-zts \ +{{ ) end -}} +{{ ) else "" end -}} ; \ make -j "$(nproc)"; \ find -type f -name '*.a' -delete; \ diff --git a/apply-templates.sh b/apply-templates.sh index 2f2e27a9e..1b6a77666 100755 --- a/apply-templates.sh +++ b/apply-templates.sh @@ -7,7 +7,8 @@ jqt='.jq-template.awk' if [ -n "${BASHBREW_SCRIPTS:-}" ]; then jqt="$BASHBREW_SCRIPTS/jq-template.awk" elif [ "$BASH_SOURCE" -nt "$jqt" ]; then - wget -qO "$jqt" 'https://github.com/docker-library/bashbrew/raw/5f0c26381fb7cc78b2d217d58007800bdcfbcfa1/scripts/jq-template.awk' + # https://github.com/docker-library/bashbrew/blob/master/scripts/jq-template.awk + wget -qO "$jqt" 'https://github.com/docker-library/bashbrew/raw/1da7341a79651d28fbcc3d14b9176593c4231942/scripts/jq-template.awk' fi if [ "$#" -eq 0 ]; then