Dockerfile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. FROM debian:stretch-slim
  2. MAINTAINER Andre Peters <andre.peters@servercow.de>
  3. ENV 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
  10. RUN apt-get install -y --no-install-recommends supervisor \
  11. postfix \
  12. sasl2-bin \
  13. libsasl2-modules \
  14. postfix \
  15. postfix-mysql \
  16. postfix-pcre \
  17. syslog-ng \
  18. syslog-ng-core \
  19. syslog-ng-mod-redis \
  20. ca-certificates \
  21. gnupg \
  22. python-gpgme \
  23. sudo \
  24. curl \
  25. dirmngr
  26. RUN addgroup --system --gid 600 zeyple
  27. RUN adduser --system --home /var/lib/zeyple --no-create-home --uid 600 --gid 600 --disabled-login zeyple
  28. RUN touch /var/log/zeyple.log && chown zeyple: /var/log/zeyple.log
  29. RUN touch /etc/default/locale
  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 apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*