mirror of
https://github.com/Mailu/Mailu.git
synced 2025-01-18 03:21:36 +02:00
634318adba
2072: use dovecot-fts-xapian from alpine package r=mergify[bot] a=willofr ## What type of PR? enhancement ## What does this PR do? use dovecot-fts-xapian from alpine packages repository (newer) instead of compiling an older version from source see https://pkgs.alpinelinux.org/package/edge/community/x86/dovecot-fts-xapian ### Related issue(s) No ## Prerequisites Before we can consider review and merge, please make sure the following list is done and checked. If an entry in not applicable, you can check it or remove it from the list. - [x] In case of feature or enhancement: documentation updated accordingly - [x] Unless it's docs or a minor change: add [changelog](https://mailu.io/master/contributors/workflow.html#changelog) entry file. Co-authored-by: willofr <willofr@users.noreply.github.com>
34 lines
911 B
Docker
34 lines
911 B
Docker
ARG DISTRO=alpine:3.14.2
|
|
|
|
FROM $DISTRO
|
|
ARG VERSION
|
|
ENV TZ Etc/UTC
|
|
|
|
LABEL version=$VERSION
|
|
|
|
# python3 shared with most images
|
|
RUN apk add --no-cache \
|
|
python3 py3-pip git bash py3-multidict py3-yarl tzdata \
|
|
&& pip3 install --upgrade pip
|
|
|
|
# Shared layer between nginx, dovecot, postfix, postgresql, rspamd, unbound, rainloop, roundcube
|
|
RUN pip3 install socrate==0.2.0
|
|
|
|
# Shared layer between dovecot and postfix
|
|
RUN pip3 install "podop>0.2.5"
|
|
|
|
# Image specific layers under this line
|
|
RUN apk add --no-cache \
|
|
dovecot dovecot-lmtpd dovecot-pop3d dovecot-submissiond dovecot-pigeonhole-plugin rspamd-client xapian-core dovecot-fts-xapian \
|
|
&& mkdir /var/lib/dovecot
|
|
|
|
COPY conf /conf
|
|
COPY start.py /start.py
|
|
|
|
EXPOSE 110/tcp 143/tcp 993/tcp 4190/tcp 2525/tcp
|
|
VOLUME ["/mail"]
|
|
|
|
CMD /start.py
|
|
|
|
HEALTHCHECK --start-period=350s CMD echo QUIT|nc localhost 110|grep "Dovecot ready."
|
|
RUN echo $VERSION >> /version |