From 42ae2d9ff41f1faec6bf889d575cf9c4c6190502 Mon Sep 17 00:00:00 2001 From: Paolo Cuffiani Date: Wed, 21 Oct 2026 16:03:18 +0200 Subject: [PATCH] fix archived sources --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3839a9b..c0b8359 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,13 +2,14 @@ ARG BASE_IMAGE=php:latest FROM ${BASE_IMAGE} LABEL maintainer="dev@chialab.io" -# Fix Debian 9 (Stretch) and 10 (Buster) source lists, because they have been moved to archive +# Fix Debian 9 (Stretch), 10 (Buster) and 11 (Bullseye) source lists, because they have been moved to archive # Paranoid people should manually download and verify the signing keys from https://ftp-master.debian.org/keys.html -RUN if [ "$(grep '^VERSION_ID=' /etc/os-release | cut -d '=' -f 2 | tr -d '"')" -lt "11" ]; then \ +RUN if [ "$(grep '^VERSION_ID=' /etc/os-release | cut -d '=' -f 2 | tr -d '"')" -lt "12" ]; then \ sed -i -e 's/deb.debian.org/archive.debian.org/g' \ -e 's/security.debian.org/archive.debian.org/g' \ -e '/stretch-updates/d' \ - -e '/buster-updates/d' /etc/apt/sources.list; \ + -e '/buster-updates/d' \ + -e '/bullseye-updates/d' /etc/apt/sources.list; \ apt-get update && apt-get install -y --allow-unauthenticated debian-archive-keyring; \ fi