2018-07-11 20:01:03 +02:00
|
|
|
FROM ubuntu:bionic
|
2017-05-13 15:33:32 +02:00
|
|
|
LABEL maintainer "Andre Peters <andre.peters@servercow.de>"
|
2017-03-02 11:23:23 +01:00
|
|
|
|
2017-05-13 16:29:18 +02:00
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
2017-03-02 11:23:23 +01:00
|
|
|
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
|
|
|
|
|
2017-05-13 15:52:16 +02:00
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
2017-05-13 16:07:06 +02:00
|
|
|
ca-certificates \
|
|
|
|
curl \
|
|
|
|
dirmngr \
|
|
|
|
gnupg \
|
2017-03-02 11:23:23 +01:00
|
|
|
libsasl2-modules \
|
2018-04-26 14:06:10 +02:00
|
|
|
perl \
|
2017-03-02 11:23:23 +01:00
|
|
|
postfix \
|
|
|
|
postfix-mysql \
|
|
|
|
postfix-pcre \
|
2018-07-11 20:01:03 +02:00
|
|
|
python-gpg \
|
2017-05-13 16:07:06 +02:00
|
|
|
sasl2-bin \
|
|
|
|
sudo \
|
|
|
|
supervisor \
|
2017-03-02 11:23:23 +01:00
|
|
|
syslog-ng \
|
|
|
|
syslog-ng-core \
|
2017-05-12 20:54:23 +02:00
|
|
|
syslog-ng-mod-redis \
|
2018-07-17 00:29:07 +02:00
|
|
|
tzdata \
|
2017-07-11 17:09:20 +02:00
|
|
|
&& rm -rf /var/lib/apt/lists/* \
|
2018-01-24 09:10:43 +01:00
|
|
|
&& touch /etc/default/locale \
|
|
|
|
&& printf '#!/bin/bash\n/usr/sbin/postconf -c /opt/postfix/conf "$@"' > /usr/local/sbin/postconf \
|
|
|
|
&& chmod +x /usr/local/sbin/postconf
|
2017-04-05 22:19:41 +02:00
|
|
|
|
2018-04-26 14:06:10 +02:00
|
|
|
RUN addgroup --system --gid 600 zeyple \
|
|
|
|
&& adduser --system --home /var/lib/zeyple --no-create-home --uid 600 --gid 600 --disabled-login zeyple \
|
|
|
|
&& touch /var/log/zeyple.log \
|
|
|
|
&& chown zeyple: /var/log/zeyple.log \
|
|
|
|
&& mkdir -p /opt/mailman/var/data \
|
|
|
|
&& touch /opt/mailman/var/data/postfix_lmtp \
|
|
|
|
&& touch /opt/mailman/var/data/postfix_domains
|
2017-05-06 23:42:18 +02:00
|
|
|
|
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
|
2017-05-06 23:42:18 +02:00
|
|
|
COPY syslog-ng.conf /etc/syslog-ng/syslog-ng.conf
|
2017-03-02 11:23:23 +01:00
|
|
|
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
|
|
|
|
|
2017-05-13 15:52:16 +02:00
|
|
|
RUN rm -rf /tmp/* /var/tmp/*
|