forked from hardware/mailserver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
28 lines (24 loc) · 1.2 KB
/
Dockerfile
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
26
27
28
FROM debian:jessie
MAINTAINER Hardware <[email protected]>
ENV TINI_VER=0.10.0
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y -q --no-install-recommends \
postfix postfix-mysql postfix-pcre postgrey \
dovecot-core dovecot-imapd dovecot-lmtpd dovecot-mysql dovecot-sieve dovecot-managesieved dovecot-pop3d \
opendkim opendkim-tools opendmarc \
amavisd-new amavisd-milter spamassassin clamav-daemon clamav-milter \
libsys-syslog-perl libmail-spf-perl libhttp-message-perl altermime \
supervisor openssl rsyslog python-pip \
pigz pxz pbzip2 \
wget ca-certificates dnsutils \
&& 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 autoremove -y \
&& apt-get clean \
&& rm -rf /tmp/* /var/lib/apt/lists/* /var/cache/debconf/*-old /usr/share/doc/* /usr/share/man/* \
&& cp -r /usr/share/locale/en\@* /tmp/ && rm -rf /usr/share/locale/* && mv /tmp/en\@* /usr/share/locale/
VOLUME /var/mail /var/lib/dovecot /etc/opendkim/keys /etc/letsencrypt
EXPOSE 25 143 465 587 993 4190
COPY rootfs /
CMD ["tini","--","startup"]