2022-09-27 22:09:07 +02:00
|
|
|
# syntax=docker/dockerfile-upstream:1.4.3
|
2020-01-04 19:04:25 +02:00
|
|
|
|
2022-10-08 15:55:40 +02:00
|
|
|
# dovecot image
|
2022-09-27 22:09:07 +02:00
|
|
|
FROM base
|
2021-11-04 15:22:12 +02:00
|
|
|
|
2022-09-27 22:09:07 +02:00
|
|
|
ARG VERSION
|
2021-11-17 22:00:04 +02:00
|
|
|
LABEL version=$VERSION
|
|
|
|
|
2022-09-27 22:09:07 +02:00
|
|
|
RUN set -euxo pipefail \
|
2022-10-08 15:55:40 +02:00
|
|
|
; apk add --no-cache dovecot dovecot-fts-xapian dovecot-lmtpd dovecot-pigeonhole-plugin dovecot-pop3d dovecot-submissiond rspamd-client xapian-core \
|
|
|
|
; mkdir /var/lib/dovecot
|
2016-02-24 08:44:49 +02:00
|
|
|
|
2022-10-08 15:55:40 +02:00
|
|
|
COPY conf/ /conf/
|
|
|
|
COPY start.py /
|
2016-02-24 08:44:49 +02:00
|
|
|
|
2022-10-08 15:55:40 +02:00
|
|
|
RUN echo $VERSION >/version
|
2022-09-27 22:09:07 +02:00
|
|
|
|
2018-04-21 14:46:01 +02:00
|
|
|
EXPOSE 110/tcp 143/tcp 993/tcp 4190/tcp 2525/tcp
|
2022-12-29 15:14:53 +02:00
|
|
|
HEALTHCHECK CMD echo PING|nc -w2 localhost 5001|grep "PONG"
|
2022-09-27 22:09:07 +02:00
|
|
|
|
2019-10-14 15:45:06 +02:00
|
|
|
VOLUME ["/mail"]
|
2018-04-21 14:46:01 +02:00
|
|
|
|
2017-09-24 14:42:40 +02:00
|
|
|
CMD /start.py
|