mirror of
https://github.com/linka-cloud/d2vm.git
synced 2024-11-21 23:36:25 +00:00
fix debian stretch support
Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
parent
4e533b8044
commit
a22bf9caf1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user