mirror of
https://github.com/Mailu/Mailu.git
synced 2024-12-14 10:53:30 +02:00
25 lines
702 B
Docker
25 lines
702 B
Docker
# syntax=docker/dockerfile-upstream:1.4.3
|
|
|
|
# dovecot image
|
|
FROM base
|
|
|
|
ARG VERSION
|
|
LABEL version=$VERSION
|
|
|
|
RUN set -euxo pipefail \
|
|
; echo -e 'http://dl-cdn.alpinelinux.org/alpine/edge/main\nhttp://dl-cdn.alpinelinux.org/alpine/edge/testing\nhttp://dl-cdn.alpinelinux.org/alpine/edge/community' >> /etc/apk/repositories \
|
|
; apk add --no-cache 'dovecot<2.4' dovecot-lmtpd dovecot-pigeonhole-plugin dovecot-pop3d dovecot-submissiond rspamd-client dovecot-fts-flatcurve \
|
|
; mkdir /var/lib/dovecot
|
|
|
|
COPY conf/ /conf/
|
|
COPY start.py /
|
|
|
|
RUN echo $VERSION >/version
|
|
|
|
# EXPOSE 110/tcp 143/tcp 993/tcp 4190/tcp 2525/tcp
|
|
HEALTHCHECK CMD kill -0 `cat /run/dovecot/master.pid`
|
|
|
|
VOLUME ["/mail"]
|
|
|
|
CMD /start.py
|