Dockerfile 839 B

1234567891011121314151617181920212223242526272829303132
  1. From ubuntu:xenial
  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. postfix \
  14. postfix-mysql \
  15. postfix-pcre \
  16. syslog-ng \
  17. syslog-ng-core \
  18. ca-certificates
  19. RUN sed -i -E 's/^(\s*)system\(\);/\1unix-stream("\/dev\/log");/' /etc/syslog-ng/syslog-ng.conf
  20. COPY supervisord.conf /etc/supervisor/supervisord.conf
  21. COPY postfix.sh /opt/postfix.sh
  22. EXPOSE 588
  23. CMD exec /usr/bin/supervisord -c /etc/supervisor/supervisord.conf
  24. RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*