blob: 53d52da155279f1428ec262eb5fb35317ab2a479 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
FROM debian:stretch
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
RUN apt-get update \
&& apt-get install -y rspamd \
&& rm -rf /var/lib/apt/lists/*
RUN echo 'type = "console";' > /etc/rspamd/override.d/logging.inc \
&& echo 'bind_socket = "*:11334";' > /etc/rspamd/override.d/worker-controller.inc \
&& echo 'pidfile = false;' > /etc/rspamd/override.d/options.inc
VOLUME [ "/var/lib/rspamd" ]
CMD [ "/usr/bin/rspamd", "-f", "-u", "_rspamd", "-g", "_rspamd" ]
EXPOSE 11333 11334
|