mailcow/data/Dockerfiles/postfix/Dockerfile

34 lines
859 B
Docker
Raw Normal View History

2016-12-10 03:39:02 +08:00
From ubuntu:xenial
MAINTAINER Andre Peters <andre.peters@servercow.de>
ENV DEBIAN_FRONTEND noninteractive
ENV LC_ALL C
2016-12-10 03:39:02 +08:00
RUN dpkg-divert --local --rename --add /sbin/initctl \
&& ln -sf /bin/true /sbin/initctl \
&& dpkg-divert --local --rename --add /usr/bin/ischroot \
&& ln -sf /bin/true /usr/bin/ischroot
2016-12-10 03:39:02 +08:00
RUN apt-get update
RUN apt-get install -y --no-install-recommends supervisor \
2016-12-10 03:39:02 +08:00
postfix \
sasl2-bin \
2017-01-22 23:42:14 +08:00
libsasl2-modules \
2016-12-10 03:39:02 +08:00
postfix \
postfix-mysql \
postfix-pcre \
syslog-ng \
syslog-ng-core \
2016-12-10 03:39:02 +08:00
ca-certificates
RUN sed -i -E 's/^(\s*)system\(\);/\1unix-stream("\/dev\/log");/' /etc/syslog-ng/syslog-ng.conf
2016-12-10 03:39:02 +08:00
COPY supervisord.conf /etc/supervisor/supervisord.conf
COPY postfix.sh /opt/postfix.sh
EXPOSE 588
CMD exec /usr/bin/supervisord -c /etc/supervisor/supervisord.conf
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*