Dockerfile 499 B

1234567891011121314151617181920
  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 dovecot-common dovecot-core dovecot-imapd dovecot-lmtpd dovecot-managesieved dovecot-sieve dovecot-mysql dovecot-pop3d
  10. RUN groupadd -g 5000 vmail
  11. RUN useradd -g vmail -u 5000 vmail -d /var/vmail
  12. EXPOSE 24 10001
  13. # Run
  14. CMD ["/usr/sbin/dovecot", "-F"]