forked from hardware/mailserver
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (21 loc) · 866 Bytes
/
Copy pathDockerfile
File metadata and controls
25 lines (21 loc) · 866 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM debian:jessie
MAINTAINER Hardware <contact@meshup.net>
ENV TINI_VER=0.9.0
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
postfix postfix-mysql \
dovecot-core dovecot-imapd dovecot-lmtpd dovecot-mysql dovecot-sieve dovecot-managesieved \
opendkim opendkim-tools opendmarc \
amavisd-new amavisd-milter spamassassin spamc clamav clamav-milter \
supervisor openssl rsyslog python-pip \
wget ca-certificates \
&& pip install envtpl \
&& wget -q https://github.com/krallin/tini/releases/download/v$TINI_VER/tini_$TINI_VER.deb -P /tmp \
&& dpkg -i /tmp/tini_$TINI_VER.deb \
&& apt-get purge -y \
wget \
&& apt-get clean \
&& rm -rf /tmp/* /var/lib/apt/lists/*
VOLUME /var/mail /var/lib/dovecot /etc/opendkim/keys /etc/letsencrypt
EXPOSE 25 143 465 587 993 4190
COPY rootfs /
CMD ["tini","--","startup"]