2017-05-02 09:42:07 +02:00
|
|
|
FROM debian:stretch-slim
|
2017-03-02 11:23:23 +01:00
|
|
|
MAINTAINER Andre Peters <andre.peters@servercow.de>
|
|
|
|
|
|
|
|
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
|
|
|
|
RUN apt-get install -y --no-install-recommends supervisor \
|
|
|
|
postfix \
|
|
|
|
sasl2-bin \
|
|
|
|
libsasl2-modules \
|
|
|
|
postfix \
|
|
|
|
postfix-mysql \
|
|
|
|
postfix-pcre \
|
|
|
|
syslog-ng \
|
|
|
|
syslog-ng-core \
|
2017-04-05 22:19:41 +02:00
|
|
|
ca-certificates \
|
|
|
|
gnupg \
|
|
|
|
python-gpgme \
|
|
|
|
sudo \
|
2017-04-17 15:42:35 +02:00
|
|
|
curl \
|
2017-04-05 22:19:41 +02:00
|
|
|
dirmngr
|
|
|
|
|
|
|
|
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-03-02 11:23:23 +01:00
|
|
|
RUN sed -i -E 's/^(\s*)system\(\);/\1unix-stream("\/dev\/log");/' /etc/syslog-ng/syslog-ng.conf
|
|
|
|
|
2017-04-05 22:19:41 +02:00
|
|
|
COPY zeyple.py /usr/local/bin/zeyple.py
|
|
|
|
COPY zeyple.conf /etc/zeyple.conf
|
2017-03-02 11:23:23 +01:00
|
|
|
COPY supervisord.conf /etc/supervisor/supervisord.conf
|
|
|
|
COPY postfix.sh /opt/postfix.sh
|
2017-04-23 19:38:47 +02:00
|
|
|
COPY whitelist_forwardinghosts.sh /usr/local/bin/whitelist_forwardinghosts.sh
|
2017-03-02 11:23:23 +01:00
|
|
|
|
|
|
|
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/*
|