From 7ecc58fd85ae4f95dd6b2b8ed4cf34f7cade3ea3 Mon Sep 17 00:00:00 2001 From: cjw6k Date: Fri, 10 May 2024 21:18:10 -0300 Subject: [PATCH 1/3] use recommended apt cache cleanup --- php56.Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php56.Dockerfile b/php56.Dockerfile index 47547d6..910f494 100644 --- a/php56.Dockerfile +++ b/php56.Dockerfile @@ -4,7 +4,7 @@ COPY --from=composer:2.2.12 /usr/bin/composer /usr/bin/composer RUN apt-get update && apt-get install -y \ zip \ - && rm -rf /var/cache/apt/ + && rm -rf /var/cache/apt/lists/* RUN pecl install xdebug-2.5.5 \ && docker-php-ext-enable xdebug From 8ac2a61c282630c918700e33df3bdf5c965543fa Mon Sep 17 00:00:00 2001 From: cjw6k Date: Fri, 10 May 2024 21:18:47 -0300 Subject: [PATCH 2/3] update composer LTS --- php56.Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php56.Dockerfile b/php56.Dockerfile index 910f494..931a9e0 100644 --- a/php56.Dockerfile +++ b/php56.Dockerfile @@ -1,6 +1,6 @@ FROM php:5.6-cli -COPY --from=composer:2.2.12 /usr/bin/composer /usr/bin/composer +COPY --from=composer:2.2.23 /usr/bin/composer /usr/bin/composer RUN apt-get update && apt-get install -y \ zip \ From 7da7fc77e9988283549393aca0284ce6fe90ac64 Mon Sep 17 00:00:00 2001 From: cjw6k Date: Fri, 10 May 2024 21:19:05 -0300 Subject: [PATCH 3/3] update debian archives urls Debian moved the old stretch repositories into the archives in 2023-04. See https://lists.debian.org/debian-devel-announce/2023/03/msg00006.html for details. --- php56.Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/php56.Dockerfile b/php56.Dockerfile index 931a9e0..6257ea1 100644 --- a/php56.Dockerfile +++ b/php56.Dockerfile @@ -2,6 +2,10 @@ FROM php:5.6-cli COPY --from=composer:2.2.23 /usr/bin/composer /usr/bin/composer +RUN sed -i s/deb.debian.org/archive.debian.org/g /etc/apt/sources.list \ + && sed -i s/security.debian.org/archive.debian.org/g /etc/apt/sources.list \ + && sed -i /stretch-updates/d /etc/apt/sources.list + RUN apt-get update && apt-get install -y \ zip \ && rm -rf /var/cache/apt/lists/*