webserver-k8s/dockerfiles/dovecot/Dockerfile

18 lines
502 B
Docker

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/secrets/dovecot_password_file
COPY dovecot.conf /etc/dovecot/dovecot.conf
EXPOSE 24
EXPOSE 143
EXPOSE 993
CMD [ "dovecot", "-F" ]