diff --git a/Dockerfile b/Dockerfile index e004cbb..eebd014 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,22 +1,16 @@ -FROM ubuntu:14.04 +FROM ubuntu:14.10 ENV DEBIAN_FRONTEND noninteractive RUN locale-gen en_GB en_GB.UTF-8 && dpkg-reconfigure locales -RUN apt-get update - # Prerequisites -# install self-signed ssl certs -RUN apt-get install -y --force-yes ssl-cert - -# Install postfix as MTA -RUN apt-get install -y --force-yes postfix - -# Install dovecot as IMAP server -RUN apt-get install -y --force-yes dovecot-imapd - -# Install OpenDKIM domain signing server -RUN apt-get install -y --force-yes opendkim +RUN apt-get update && apt-get install -y \ + ssl-cert \ + postfix \ + dovecot-imapd \ + opendkim && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* # postfix configuration ADD ./config/postfix.main.cf /etc/postfix/main.cf @@ -49,4 +43,3 @@ EXPOSE 25 143 587 # start necessary services for operation (dovecot -F starts dovecot in the foreground to prevent container exit) ENTRYPOINT /process_settings; service rsyslog start; service opendkim start; service postfix start; dovecot -F - diff --git a/Makefile b/Makefile index 5cbe5fe..4ea4cca 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ all: build .PHONY: build build: - docker build -t dockermail_made_special:2.1.7 . + docker build -t dockermail_made_special:2.11.1 . run: - docker run --name dockermail -d -p 25:25 -p 587:587 -p 143:143 -v /opt/dockermail/settings:/mail_settings -v /opt/dockermail/vmail:/vmail dockermail_made_special:2.1.7 + docker run --name dockermail -d -p 25:25 -p 587:587 -p 143:143 -v /opt/dockermail/settings:/mail_settings -v /opt/dockermail/vmail:/vmail dockermail_made_special:2.11.1 diff --git a/README.md b/README.md index 985698d..a200f91 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,6 @@ Use the the example config files in `config/example` of this repo. a directory on your host. (This is recommended, otherwise you have to remember to backup your mail when you want to restart the container) - `docker run -name dockermail -d -p 25:25 -p 587:587 -p 143:143 -v /opt/dockermail/settings:/mail_settings -v /opt/dockermail/vmail:/vmail dockermail_made_special/2.1.7` + `docker run -name dockermail -d -p 25:25 -p 587:587 -p 143:143 -v /opt/dockermail/settings:/mail_settings -v /opt/dockermail/vmail:/vmail dockermail_made_special/2.11.1 -8. Enjoy! \ No newline at end of file +8. Enjoy!