Dockerfile 601 B

123456789101112131415161718192021222324252627282930
  1. From ubuntu:xenial
  2. MAINTAINER Andre Peters <andre.peters@servercow.de>
  3. # Set noninteractive mode for apt-get
  4. ENV DEBIAN_FRONTEND noninteractive
  5. # Update
  6. RUN apt-get update
  7. # Start editing
  8. # Install package here for cache
  9. RUN apt-get -y install supervisor \
  10. postfix \
  11. sasl2-bin \
  12. postfix \
  13. postfix-mysql \
  14. postfix-pcre \
  15. rsyslog \
  16. ca-certificates
  17. COPY supervisord.conf /etc/supervisor/supervisord.conf
  18. COPY postfix.sh /opt/postfix.sh
  19. RUN groupadd -g 5000 vmail
  20. RUN useradd -g vmail -u 5000 vmail -d /var/vmail
  21. EXPOSE 588
  22. # Run
  23. CMD /usr/bin/supervisord -c /etc/supervisor/supervisord.conf