summaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorTim Düsterhus <tim@bastelstu.be>2018-03-22 12:57:33 +0100
committerTim Düsterhus <tim@bastelstu.be>2018-03-22 12:57:33 +0100
commit85472b4ae1482161044c45239e1132e7eadcc45c (patch)
tree0da4ee9d2234e70bc546225ee67391a882de2104 /docker
parent5e85b7275de419ba5c794c2adbc82bb8cf1bfe71 (diff)
downloadrspamd-85472b4ae1482161044c45239e1132e7eadcc45c.tar.gz
rspamd-85472b4ae1482161044c45239e1132e7eadcc45c.zip
Retrieve GPG via keyserver in Dockerfile
Diffstat (limited to 'docker')
-rw-r--r--docker/Dockerfile15
1 files changed, 10 insertions, 5 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 4cd61fff4..53d52da15 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -1,10 +1,15 @@
FROM debian:stretch
-RUN apt-get update \
- && apt-get install -y --no-install-recommends gnupg dirmngr curl \
- && curl -fsSL http://rspamd.com/apt-stable/gpg.key | apt-key add - \
- && apt-get purge -y --auto-remove curl \
- && rm -rf /var/lib/apt/lists/*
+RUN apt-get update && apt-get install -y --no-install-recommends gnupg dirmngr && rm -rf /var/lib/apt/lists/*
+
+RUN set -x \
+# gpg: key FFA232EDBF21E25E: public key "Rspamd Nightly Builds (Rspamd Nightly Builds) <vsevolod@highsecure.ru>" imported
+ && key='3FA347D5E599BE4595CA2576FFA232EDBF21E25E' \
+ && export GNUPGHOME="$(mktemp -d)" \
+ && gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key" \
+ && gpg --export "$key" > /etc/apt/trusted.gpg.d/rspamd.gpg \
+ && rm -rf "$GNUPGHOME" \
+ && apt-key list > /dev/null
RUN echo "deb http://rspamd.com/apt-stable/ stretch main" > /etc/apt/sources.list.d/rspamd.list