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 829B

123456789101112131415161718192021222324252627282930313233
  1. FROM debian:jessie
  2. MAINTAINER Robin Thoni <robin@rthoni.com>
  3. RUN apt-get update &&\
  4. apt-get install -y opendkim opendkim-tools openssl libopendbx1-pgsql rsyslog &&\
  5. apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  6. RUN rm /etc/opendkim.conf &&\
  7. ln -s /etc/opendkim/opendkim.conf /etc/opendkim.conf
  8. RUN rm -rf /var/log/* &&\
  9. mkfifo /var/log/syslog &&\
  10. ln -s /dev/null /var/log/mail.log &&\
  11. ln -s /dev/null /var/log/mail.err &&\
  12. ln -s /dev/null /var/log/main.info &&\
  13. ln -s /dev/null /var/log/messages
  14. RUN sed -e 's/\(\$ModLoad imklog.*\)/#\1/' -i /etc/rsyslog.conf
  15. COPY ./config /etc/opendkim/
  16. RUN chown -R opendkim:opendkim /etc/opendkim
  17. COPY ./vars-vars /etc/vars-vars
  18. COPY ./vars-files /etc/vars-files
  19. COPY ./run.sh /run.sh
  20. VOLUME ["/etc/opendkim/keys"]
  21. CMD ["/run.sh"]