mailcow/data/Dockerfiles/postfix/Dockerfile

49 lines
1.3 KiB
Docker
Raw Normal View History

FROM debian:stretch-slim
LABEL maintainer "Andre Peters <andre.peters@servercow.de>"
2017-03-02 18:23:23 +08:00
ENV DEBIAN_FRONTEND noninteractive
ENV LC_ALL C
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
RUN apt-get update && apt-get install -y --no-install-recommends \
supervisor \
2017-03-02 18:23:23 +08:00
postfix \
sasl2-bin \
libsasl2-modules \
postfix \
postfix-mysql \
postfix-pcre \
syslog-ng \
syslog-ng-core \
syslog-ng-mod-redis \
2017-04-06 04:19:41 +08:00
ca-certificates \
gnupg \
python-gpgme \
sudo \
2017-04-17 21:42:35 +08:00
curl \
dirmngr \
&& rm -rf /var/lib/apt/lists/*
2017-04-06 04:19:41 +08:00
RUN addgroup --system --gid 600 zeyple
RUN adduser --system --home /var/lib/zeyple --no-create-home --uid 600 --gid 600 --disabled-login zeyple
RUN touch /var/log/zeyple.log && chown zeyple: /var/log/zeyple.log
2017-05-07 05:42:18 +08:00
RUN touch /etc/default/locale
2017-03-02 18:23:23 +08:00
2017-04-06 04:19:41 +08:00
COPY zeyple.py /usr/local/bin/zeyple.py
COPY zeyple.conf /etc/zeyple.conf
2017-03-02 18:23:23 +08:00
COPY supervisord.conf /etc/supervisor/supervisord.conf
2017-05-07 05:42:18 +08:00
COPY syslog-ng.conf /etc/syslog-ng/syslog-ng.conf
2017-03-02 18:23:23 +08:00
COPY postfix.sh /opt/postfix.sh
COPY whitelist_forwardinghosts.sh /usr/local/bin/whitelist_forwardinghosts.sh
2017-03-02 18:23:23 +08:00
EXPOSE 588
CMD exec /usr/bin/supervisord -c /etc/supervisor/supervisord.conf
RUN rm -rf /tmp/* /var/tmp/*