ADD file:7eb149bcaba1d7dcab06b3f9a0615ca459e9cb28459a0864f92b0037f270ba66 in / |
CMD ["bash"] |
LABEL org.opencontainers.image.authors=dovecot@dovecot.org |
ENV container=docker LC_ALL=C |
ARG DEBIAN_FRONTEND=noninteractive |
ADD dovecot.gpg /etc/apt/keyrings/dovecot.gpg # buildkit |
ADD dovecot.list /etc/apt/sources.list.d # buildkit |
RUN |1 DEBIAN_FRONTEND=noninteractive /bin/sh -c apt-get -y update && apt-get -y install tini dovecot-core dovecot-gssapi dovecot-imapd dovecot-ldap dovecot-lmtpd dovecot-lua dovecot-managesieved dovecot-mysql dovecot-pgsql dovecot-pop3d dovecot-sieve dovecot-solr dovecot-sqlite dovecot-submissiond ca-certificates ssl-cert && rm -rf /var/lib/apt/lists && groupadd -g 1000 vmail && useradd -u 1000 -g 1000 vmail -d /srv/vmail && passwd -l vmail && rm -rf /etc/dovecot && mkdir /srv/mail && chown vmail:vmail /srv/mail && make-ssl-cert generate-default-snakeoil && mkdir /etc/dovecot && ln -s /etc/ssl/certs/ssl-cert-snakeoil.pem /etc/dovecot/cert.pem && ln -s /etc/ssl/private/ssl-cert-snakeoil.key /etc/dovecot/key.pem # buildkit |
ADD dovecot.conf /etc/dovecot/dovecot.conf # buildkit |
EXPOSE map[24/tcp:{}] |
EXPOSE map[110/tcp:{}] |
EXPOSE map[143/tcp:{}] |
EXPOSE map[587/tcp:{}] |
EXPOSE map[990/tcp:{}] |
EXPOSE map[993/tcp:{}] |
EXPOSE map[4190/tcp:{}] |
VOLUME [/etc/dovecot /srv/mail] |
ENTRYPOINT ["/usr/bin/tini" "--"] |
CMD ["/usr/sbin/dovecot" "-F"] |
/bin/sh -c userdel _apt |
/bin/sh -c groupdel ssl-cert |
/bin/sh -c groupadd -r -g 101 postfix |
/bin/sh -c useradd -u 100 -r -g 101 -d /var/spool/postfix -s /sbin/nologin -c "postfix" postfix |