diff options
author | Manuel Rüger <manuel@rueg.eu> | 2021-10-12 18:05:41 +0200 |
---|---|---|
committer | Manuel Rüger <manuel@rueg.eu> | 2021-10-12 18:05:45 +0200 |
commit | 85f10315cf8ff67fbe8e6bf6fdf91af4faf7f7f7 (patch) | |
tree | 9635274fc9e0de13c363f34836728fa3cc609072 /docker | |
parent | b68e6b885974acbbf75b244224ca87b2fcf304fc (diff) | |
download | rspamd-85f10315cf8ff67fbe8e6bf6fdf91af4faf7f7f7.tar.gz rspamd-85f10315cf8ff67fbe8e6bf6fdf91af4faf7f7f7.zip |
Dockerfile: Switch to bullseye
But allow users to change it via a build-arg
Diffstat (limited to 'docker')
-rw-r--r-- | docker/Dockerfile | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile index 13d738ec9..ae6d9562d 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,4 +1,7 @@ -FROM debian:buster-slim +ARG DEBIAN_RELEASE=bullseye +FROM debian:${DEBIAN_RELEASE}-slim +ARG DEBIAN_RELEASE=bullseye +ENV DEBIAN_RELEASE=$DEBIAN_RELEASE RUN apt-get update && apt-get install -y --no-install-recommends \ ca-certificates \ @@ -46,7 +49,7 @@ lwJWDec6PUe835YwqrARXtPaNA== \n\ && rm -rf "$GNUPGHOME" \ && apt-key list > /dev/null -RUN echo "deb [signed-by=/etc/apt/trusted.gpg.d/rspamd.gpg] https://rspamd.com/apt-stable/ buster main" > /etc/apt/sources.list.d/rspamd.list +RUN echo "deb [signed-by=/etc/apt/trusted.gpg.d/rspamd.gpg] https://rspamd.com/apt-stable/ $DEBIAN_RELEASE main" > /etc/apt/sources.list.d/rspamd.list RUN apt-get update \ && apt-get install -y rspamd \ |