FROM alpine:latest RUN apk --no-cache add dovecot dovecot-lmtpd dovecot-submissiond bash # RUN wget https://github.com/dovecot/docker/blob/main/2.3.21/dovecot.gpg # RUN cp dovecot.gpg /etc/apt/keyrings/dovecot.gpg # RUN wget https://github.com/dovecot/docker/blob/main/2.3.21/dovecot.list # RUN cp dovecot.list /etc/apt/sources.list.d COPY password_file /etc/dovecot/dovecot_password_file COPY dovecot.conf /etc/dovecot/dovecot.conf COPY startup.sh /usr/bin/startup.sh RUN chmod +x /usr/bin/startup.sh EXPOSE 24 EXPOSE 143 EXPOSE 993 CMD [ "startup.sh" ]