diff --git a/Dockerfile b/Dockerfile index 37b71a5..e73fb1f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,10 +6,8 @@ ENV DEBIAN_FRONTEND noninteractive # Configure Proxy RUN set -ex; \ - sed -i 's/deb.debian.org/ftp.ch.debian.org/g' /etc/apt/sources.list && \ apt-get update --allow-releaseinfo-change && \ apt-get install -qy netcat-openbsd && \ - sed -i 's/ftp.ch.debian.org/deb.debian.org/g' /etc/apt/sources.list || exit 0 && \ if [ -z "$APT_CACHER" ]; then APT_CACHER="apt-cacher.apt-cacher.svc.cluster.local"; fi && \ if nc -w1 -z $APT_CACHER 3142 1>/dev/null 2>&1; then \ echo 'Acquire::HTTP::Proxy "http://'$APT_CACHER':3142";' >> /etc/apt/apt.conf.d/01proxy && \ @@ -17,7 +15,6 @@ RUN set -ex; \ # Install rspamd RUN set -ex; \ - apt-get update --allow-releaseinfo-change && \ apt-get install --no-install-recommends -y -o 'DPkg::Options::=--force-confold' -o 'DPkg::Options::=--force-confdef' lsb-release wget ca-certificates gpg && \ mkdir -p /etc/apt/keyrings && \ wget -O- https://rspamd.com/apt-stable/gpg.key | gpg --dearmor > /etc/apt/keyrings/rspamd.gpg && \ @@ -26,7 +23,9 @@ RUN set -ex; \ apt-get update --allow-releaseinfo-change && \ apt-get --no-install-recommends -y -o 'DPkg::Options::=--force-confold' -o 'DPkg::Options::=--force-confdef' install rspamd -RUN set -ex; \ +# Remove proxy for future runs and lists for space +RUN set -ex; \ + rm -f /etc/apt/apt.conf.d/01proxy && \ rm -rf /var/lib/apt/lists/* # 11332 milter, 11334 web diff --git a/README.md b/README.md index 30dbdfc..901a325 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ # rspamd +https://rspamd.com/apt-stable/pool/main/r/rspamd/ + ## License This is MIT licensed.