]> source.dussan.org Git - rspamd.git/commitdiff
Dockerfile: Switch to bullseye 3933/head
authorManuel Rüger <manuel@rueg.eu>
Tue, 12 Oct 2021 16:05:41 +0000 (18:05 +0200)
committerManuel Rüger <manuel@rueg.eu>
Tue, 12 Oct 2021 16:05:45 +0000 (18:05 +0200)
But allow users to change it via a build-arg

docker/Dockerfile

index 13d738ec9632e6814cf620ecebab6d15afde44df..ae6d9562daef40baad894c5eb921e1acae834f70 100644 (file)
@@ -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 \