Dockerfile 504 B

12345678910111213141516171819202122232425
  1. From ubuntu:xenial
  2. MAINTAINER Andre Peters <andre.peters@servercow.de>
  3. ENV DEBIAN_FRONTEND noninteractive
  4. RUN apt-get update
  5. RUN apt-get -y install supervisor \
  6. postfix \
  7. sasl2-bin \
  8. postfix \
  9. postfix-mysql \
  10. postfix-pcre \
  11. rsyslog \
  12. ca-certificates
  13. COPY supervisord.conf /etc/supervisor/supervisord.conf
  14. COPY postfix.sh /opt/postfix.sh
  15. RUN groupadd -g 5000 vmail
  16. RUN useradd -g vmail -u 5000 vmail -d /var/vmail
  17. EXPOSE 588
  18. CMD exec /usr/bin/supervisord -c /etc/supervisor/supervisord.conf