webserver-k8s/dockerfiles/dovecot/Dockerfile
Quentin Legot d9cb537a61 Fix password_file not existing in dovecot pods
authorize plaintext
fix password file
Added a startup.sh file
2023-10-11 15:08:26 +02:00

20 lines
560 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/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" ]