2015-07-08 09:06:43 +00:00
|
|
|
FROM ubuntu:14.10
|
|
|
|
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
RUN locale-gen en_GB en_GB.UTF-8 && dpkg-reconfigure locales
|
|
|
|
|
|
|
|
# Prerequisites
|
2015-07-25 01:24:55 +00:00
|
|
|
RUN echo "#!/bin/sh\nexit 0" > /usr/sbin/policy-rc.d && \
|
2015-07-26 18:48:23 +00:00
|
|
|
apt-get update && apt-get install -y opendkim && \
|
2015-07-08 09:06:43 +00:00
|
|
|
apt-get clean && \
|
|
|
|
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
|
|
|
2015-07-08 12:17:04 +00:00
|
|
|
# Nice place for your settings
|
2015-07-08 09:06:43 +00:00
|
|
|
VOLUME ["/mail_settings"]
|
2015-07-08 12:17:04 +00:00
|
|
|
|
|
|
|
# Configure boot script
|
|
|
|
COPY boot /
|
2015-07-08 09:06:43 +00:00
|
|
|
RUN chmod 755 /boot
|
|
|
|
|
2015-07-12 22:54:35 +00:00
|
|
|
ENV OPEN_DKIM=true
|
2015-07-08 12:17:04 +00:00
|
|
|
|
|
|
|
EXPOSE 8891
|
2015-07-26 18:48:23 +00:00
|
|
|
ENTRYPOINT /boot; opendkim -f -p inet:8891@0.0.0.0
|