From a22bf9caf13c9f4d549e65248ee37902ef6d110a Mon Sep 17 00:00:00 2001 From: Adphi Date: Mon, 11 Sep 2023 15:54:34 +0200 Subject: [PATCH] fix debian stretch support Signed-off-by: Adphi --- templates/debian.Dockerfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/templates/debian.Dockerfile b/templates/debian.Dockerfile index 396cec7..a6ea88c 100644 --- a/templates/debian.Dockerfile +++ b/templates/debian.Dockerfile @@ -2,6 +2,14 @@ FROM {{ .Image }} USER root +{{- if eq .Release.VersionID "9" }} +RUN echo "deb http://archive.debian.org/debian stretch main" > /etc/apt/sources.list && \ + echo "deb-src http://archive.debian.org/debian stretch main" >> /etc/apt/sources.list && \ + echo "deb http://archive.debian.org/debian stretch-backports main" >> /etc/apt/sources.list && \ + echo "deb http://archive.debian.org/debian-security stretch/updates main" >> /etc/apt/sources.list && \ + echo "deb-src http://archive.debian.org/debian-security stretch/updates main" >> /etc/apt/sources.list +{{- end }} + RUN apt-get -y update && \ DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends \ linux-image-amd64