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