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
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
RUN locale-gen en_GB en_GB.UTF-8 && dpkg-reconfigure locales
|
RUN locale-gen en_GB en_GB.UTF-8 && dpkg-reconfigure locales
|
||||||
|
|
||||||
RUN apt-get update
|
|
||||||
|
|
||||||
# Prerequisites
|
# Prerequisites
|
||||||
# install self-signed ssl certs
|
RUN apt-get update && apt-get install -y \
|
||||||
RUN apt-get install -y --force-yes ssl-cert
|
ssl-cert \
|
||||||
|
postfix \
|
||||||
# Install postfix as MTA
|
dovecot-imapd \
|
||||||
RUN apt-get install -y --force-yes postfix
|
opendkim && \
|
||||||
|
apt-get clean && \
|
||||||
# Install dovecot as IMAP server
|
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||||
RUN apt-get install -y --force-yes dovecot-imapd
|
|
||||||
|
|
||||||
# Install OpenDKIM domain signing server
|
|
||||||
RUN apt-get install -y --force-yes opendkim
|
|
||||||
|
|
||||||
# postfix configuration
|
# postfix configuration
|
||||||
ADD ./config/postfix.main.cf /etc/postfix/main.cf
|
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)
|
# 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
|
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
|
.PHONY: build
|
||||||
|
|
||||||
build:
|
build:
|
||||||
docker build -t dockermail_made_special:2.1.7 .
|
docker build -t dockermail_made_special:2.11.1 .
|
||||||
|
|
||||||
run:
|
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
|
a directory on your host. (This is recommended, otherwise
|
||||||
you have to remember to backup your mail when you want to restart the container)
|
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!
|
8. Enjoy!
|
Loading…
Reference in New Issue
Block a user