Dockerfile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. FROM debian:stretch-slim
  2. LABEL maintainer "Andre Peters <andre.peters@servercow.de>"
  3. ARG DEBIAN_FRONTEND=noninteractive
  4. ENV LC_ALL C
  5. RUN dpkg-divert --local --rename --add /sbin/initctl \
  6. && ln -sf /bin/true /sbin/initctl \
  7. && dpkg-divert --local --rename --add /usr/bin/ischroot \
  8. && ln -sf /bin/true /usr/bin/ischroot
  9. RUN apt-get update && apt-get install -y --no-install-recommends \
  10. ca-certificates \
  11. curl \
  12. dirmngr \
  13. gnupg \
  14. libsasl2-modules \
  15. postfix \
  16. postfix-mysql \
  17. postfix-pcre \
  18. python-gpgme \
  19. sasl2-bin \
  20. sudo \
  21. supervisor \
  22. syslog-ng \
  23. syslog-ng-core \
  24. syslog-ng-mod-redis \
  25. && rm -rf /var/lib/apt/lists/* \
  26. && touch /etc/default/locale \
  27. && printf '#!/bin/bash\n/usr/sbin/postconf -c /opt/postfix/conf "$@"' > /usr/local/sbin/postconf \
  28. && chmod +x /usr/local/sbin/postconf
  29. RUN addgroup --system --gid 600 zeyple
  30. RUN adduser --system --home /var/lib/zeyple --no-create-home --uid 600 --gid 600 --disabled-login zeyple
  31. RUN touch /var/log/zeyple.log && chown zeyple: /var/log/zeyple.log
  32. COPY zeyple.py /usr/local/bin/zeyple.py
  33. COPY zeyple.conf /etc/zeyple.conf
  34. COPY supervisord.conf /etc/supervisor/supervisord.conf
  35. COPY syslog-ng.conf /etc/syslog-ng/syslog-ng.conf
  36. COPY postfix.sh /opt/postfix.sh
  37. COPY whitelist_forwardinghosts.sh /usr/local/bin/whitelist_forwardinghosts.sh
  38. EXPOSE 588
  39. CMD exec /usr/bin/supervisord -c /etc/supervisor/supervisord.conf
  40. RUN rm -rf /tmp/* /var/tmp/*