You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Dockerfile 822B

12345678910111213141516171819202122232425
  1. FROM debian:latest
  2. MAINTAINER Matt Simerson <matt@tnpi.net>
  3. # if Debian's ancient 0.6.10 is new enough...
  4. #RUN apt-get update && apt-get install -y rspamd
  5. # Instead, get latest release, from the source
  6. COPY rspamd.list /etc/apt/sources.list.d/rspamd.list
  7. RUN apt-get update \
  8. && apt-get install -y curl \
  9. && curl -o - http://rspamd.com/apt-stable/gpg.key | apt-key add - \
  10. && apt-get install -y --force-yes \
  11. rspamd \
  12. && apt-get clean \
  13. && rm -rf /var/lib/apt/lists/*
  14. # start up rspamd once, as it does some initialization
  15. RUN update-rc.d rspamd defaults && service rspamd start && sleep 30
  16. # Debian 8's rspamd.conf is for systemd, which is not running in container
  17. COPY rspamd.conf /etc/rspamd/rspamd.conf
  18. CMD ["/usr/bin/rspamd","-f", "-u", "_rspamd", "-g", "_rspamd"]
  19. EXPOSE 11333 11334