Dockerfile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. FROM debian:testing-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. ca-certificates \
  20. gnupg \
  21. python-gpgme \
  22. sudo \
  23. dirmngr
  24. RUN addgroup --system --gid 600 zeyple
  25. RUN adduser --system --home /var/lib/zeyple --no-create-home --uid 600 --gid 600 --disabled-login zeyple
  26. RUN touch /var/log/zeyple.log && chown zeyple: /var/log/zeyple.log
  27. RUN sed -i -E 's/^(\s*)system\(\);/\1unix-stream("\/dev\/log");/' /etc/syslog-ng/syslog-ng.conf
  28. COPY zeyple.py /usr/local/bin/zeyple.py
  29. COPY zeyple.conf /etc/zeyple.conf
  30. COPY supervisord.conf /etc/supervisor/supervisord.conf
  31. COPY postfix.sh /opt/postfix.sh
  32. EXPOSE 588
  33. CMD exec /usr/bin/supervisord -c /etc/supervisor/supervisord.conf
  34. RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*