2023-10-05 16:26:51 +02:00
|
|
|
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
|
|
|
|
|
2023-10-11 15:08:26 +02:00
|
|
|
COPY password_file /etc/dovecot/dovecot_password_file
|
2023-10-05 16:26:51 +02:00
|
|
|
COPY dovecot.conf /etc/dovecot/dovecot.conf
|
2023-10-11 15:08:26 +02:00
|
|
|
COPY startup.sh /usr/bin/startup.sh
|
|
|
|
RUN chmod +x /usr/bin/startup.sh
|
2023-10-05 16:26:51 +02:00
|
|
|
|
|
|
|
EXPOSE 24
|
|
|
|
EXPOSE 143
|
|
|
|
EXPOSE 993
|
|
|
|
|
2023-10-11 15:08:26 +02:00
|
|
|
CMD [ "startup.sh" ]
|