You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
724B

  1. FROM debian:buster
  2. ENV DEBIAN_FRONTEND=noninteractive
  3. # Packages
  4. RUN DEBIAN_FRONTEND=noninteractive apt-get update -q --fix-missing && \
  5. apt-get -y upgrade && \
  6. apt-get -y install --no-install-recommends \
  7. rsyslog \
  8. postfix postfix-pcre postfix-ldap \
  9. sudo cron getmail4 \
  10. mutt swaks \
  11. dovecot-core dovecot-imapd dovecot-pop3d dovecot-lmtpd dovecot-ldap \
  12. libsasl2-2 sasl2-bin libsasl2-modules-ldap
  13. RUN addgroup --system --gid 5000 vmail && \
  14. adduser --system --home /srv/vmail --uid 5000 --gid 5000 --disabled-password --disabled-login vmail
  15. RUN adduser postfix sasl
  16. COPY config /tmp/config
  17. COPY startup.sh /usr/local/bin/
  18. RUN chmod +x /usr/local/bin/startup.sh
  19. CMD ["/usr/local/bin/startup.sh"]