aboutsummaryrefslogtreecommitdiffstats
path: root/docker/Dockerfile
blob: 70133a5bc44e7290a05decd49b8ef9551a11d889 (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
FROM debian:latest
MAINTAINER Matt Simerson <matt@tnpi.net>

# if Debian's ancient 0.6.10 is new enough...
#RUN apt-get update && apt-get install -y rspamd

# Instead, get latest release, from the source
COPY rspamd.list /etc/apt/sources.list.d/rspamd.list
RUN apt-get update \
    && apt-get install -y curl \
    && curl -o - http://rspamd.com/apt-stable/gpg.key | apt-key add - \
    && apt-get install -y --force-yes \
       rspamd \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/*

# start up rspamd once, as it does some initialization
RUN update-rc.d rspamd defaults && service rspamd start && sleep 30

# Debian 8's rspamd.conf is for systemd, which is not running in container
COPY rspamd.conf /etc/rspamd/rspamd.conf
CMD ["/usr/bin/rspamd","-f", "-u", "_rspamd", "-g", "_rspamd"]

EXPOSE 11333 11334