Dockerfile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. RUN addgroup --system --gid 600 zeyple
  28. RUN adduser --system --home /var/lib/zeyple --no-create-home --uid 600 --gid 600 --disabled-login zeyple
  29. RUN touch /var/log/zeyple.log && chown zeyple: /var/log/zeyple.log
  30. COPY zeyple.py /usr/local/bin/zeyple.py
  31. COPY zeyple.conf /etc/zeyple.conf
  32. COPY supervisord.conf /etc/supervisor/supervisord.conf
  33. COPY syslog-ng.conf /etc/syslog-ng/syslog-ng.conf
  34. COPY postfix.sh /opt/postfix.sh
  35. COPY whitelist_forwardinghosts.sh /usr/local/bin/whitelist_forwardinghosts.sh
  36. EXPOSE 588
  37. CMD exec /usr/bin/supervisord -c /etc/supervisor/supervisord.conf
  38. RUN rm -rf /tmp/* /var/tmp/*