]> git.aero2k.de Git - sirius.git/commitdiff
Fix Docker build on archived Debian buster
authorThorsten <mail@aero2k.de>
Fri, 6 Nov 2026 17:48:42 +0000 (18:48 +0100)
committerThorsten <mail@aero2k.de>
Fri, 6 Nov 2026 17:48:42 +0000 (18:48 +0100)
buster is EOL and its packages only remain on archive.debian.org, so
apt-get update fails with the default sources.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Dockerfile

index 25b404f309c681f1b6dd24d43b7daa0b855af3a9..f252726112c87ff7ac0e75992175b53ab0e1e200 100644 (file)
@@ -2,6 +2,11 @@ FROM python:3.7.10-slim-buster
 
 WORKDIR /sirius
 
+# buster is EOL, its packages only remain on archive.debian.org
+RUN sed -i -e 's|deb.debian.org|archive.debian.org|' \
+  -e 's|security.debian.org/debian-security|archive.debian.org/debian-security|' \
+  -e '/buster-updates/d' /etc/apt/sources.list
+
 RUN apt-get update -y && \
   mkdir -p /usr/share/man/man1 && \
   mkdir -p /usr/share/man/man7 && \