Up base ubuntu to 14.10, add apt-cleanup
This commit is contained in:
parent
0f80459355
commit
79458fd438
23
Dockerfile
23
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
|
||||
|
||||
|
4
Makefile
4
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
|
||||
|
@ -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!
|
Loading…
Reference in New Issue
Block a user