From e8b2616ae2fab16e4fe61b652da58bf76c20aa28 Mon Sep 17 00:00:00 2001 From: Matthieu Napoli Date: Mon, 21 Sep 2026 12:03:00 +0100 Subject: [PATCH 1/2] Fix PHP source download URL php.net no longer serves https://www.php.net/get/php-X.Y.Z.tar.gz/from/this/mirror (returns 404 for every version), which breaks the build of every layer. Download from https://www.php.net/distributions/ instead. Claude-Session: https://claude.ai/code/session_0189hs81YWtrjJeeqAH3U5Rz --- php-82/Dockerfile | 2 +- php-83/Dockerfile | 2 +- php-84/Dockerfile | 2 +- php-85/Dockerfile | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/php-82/Dockerfile b/php-82/Dockerfile index f11087ed..1fdf87d8 100644 --- a/php-82/Dockerfile +++ b/php-82/Dockerfile @@ -113,7 +113,7 @@ WORKDIR ${PHP_BUILD_DIR} # --silent will hide the progress, but also the errors: we restore error messages with --show-error # --fail makes sure that curl returns an error instead of fetching the 404 page ARG VERSION_PHP -RUN curl --location --silent --show-error --fail https://www.php.net/get/php-${VERSION_PHP}.tar.gz/from/this/mirror \ +RUN curl --location --silent --show-error --fail https://www.php.net/distributions/php-${VERSION_PHP}.tar.gz \ | tar xzC . --strip-components=1 # Configure the build diff --git a/php-83/Dockerfile b/php-83/Dockerfile index ede38b7f..95967804 100644 --- a/php-83/Dockerfile +++ b/php-83/Dockerfile @@ -113,7 +113,7 @@ WORKDIR ${PHP_BUILD_DIR} # --silent will hide the progress, but also the errors: we restore error messages with --show-error # --fail makes sure that curl returns an error instead of fetching the 404 page ARG VERSION_PHP -RUN curl --location --silent --show-error --fail https://www.php.net/get/php-${VERSION_PHP}.tar.gz/from/this/mirror \ +RUN curl --location --silent --show-error --fail https://www.php.net/distributions/php-${VERSION_PHP}.tar.gz \ | tar xzC . --strip-components=1 # Configure the build diff --git a/php-84/Dockerfile b/php-84/Dockerfile index 1e7a5136..0fddbc34 100644 --- a/php-84/Dockerfile +++ b/php-84/Dockerfile @@ -113,7 +113,7 @@ WORKDIR ${PHP_BUILD_DIR} # --silent will hide the progress, but also the errors: we restore error messages with --show-error # --fail makes sure that curl returns an error instead of fetching the 404 page ARG VERSION_PHP -RUN curl --location --silent --show-error --fail https://www.php.net/get/php-${VERSION_PHP}.tar.gz/from/this/mirror \ +RUN curl --location --silent --show-error --fail https://www.php.net/distributions/php-${VERSION_PHP}.tar.gz \ | tar xzC . --strip-components=1 # Configure the build diff --git a/php-85/Dockerfile b/php-85/Dockerfile index eb0145a9..2decc67c 100644 --- a/php-85/Dockerfile +++ b/php-85/Dockerfile @@ -113,7 +113,7 @@ WORKDIR ${PHP_BUILD_DIR} # --silent will hide the progress, but also the errors: we restore error messages with --show-error # --fail makes sure that curl returns an error instead of fetching the 404 page ARG VERSION_PHP -RUN curl --location --silent --show-error --fail https://www.php.net/get/php-${VERSION_PHP}.tar.gz/from/this/mirror \ +RUN curl --location --silent --show-error --fail https://www.php.net/distributions/php-${VERSION_PHP}.tar.gz \ | tar xzC . --strip-components=1 # Configure the build From 06140c750db41f516905cb42f4b2034322a710b5 Mon Sep 17 00:00:00 2001 From: Matthieu Napoli Date: Mon, 21 Sep 2026 12:06:05 +0100 Subject: [PATCH 2/2] Update PHP versions to 8.4.25 and 8.5.10 8.2.33 and 8.3.33 are already the latest. Claude-Session: https://claude.ai/code/session_0189hs81YWtrjJeeqAH3U5Rz --- php-84/Dockerfile | 2 +- php-85/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/php-84/Dockerfile b/php-84/Dockerfile index 0fddbc34..93993dc9 100644 --- a/php-84/Dockerfile +++ b/php-84/Dockerfile @@ -4,7 +4,7 @@ ARG IMAGE_VERSION_SUFFIX # https://www.php.net/downloads -ARG VERSION_PHP=8.4.24 +ARG VERSION_PHP=8.4.25 # Lambda uses a custom AMI named Amazon Linux 2023 diff --git a/php-85/Dockerfile b/php-85/Dockerfile index 2decc67c..3a927154 100644 --- a/php-85/Dockerfile +++ b/php-85/Dockerfile @@ -4,7 +4,7 @@ ARG IMAGE_VERSION_SUFFIX # https://www.php.net/downloads -ARG VERSION_PHP=8.5.9 +ARG VERSION_PHP=8.5.10 # Lambda uses a custom AMI named Amazon Linux 2023