Skip to content
Snippets Groups Projects
Commit cadae199 authored by nimrod's avatar nimrod
Browse files

Fail image build when the sieve file is invalid.

parent 8f4ee219
Branches
No related tags found
No related merge requests found
...@@ -25,7 +25,8 @@ COPY patch.diff /root/ ...@@ -25,7 +25,8 @@ COPY patch.diff /root/
RUN patch --strip 0 --verbose --directory /etc/dovecot --input /root/patch.diff && \ RUN patch --strip 0 --verbose --directory /etc/dovecot --input /root/patch.diff && \
doveconf doveconf
COPY --chown=mail:mail *.sieve /var/lib/dovecot/sieve.d/ COPY --chown=mail:mail *.sieve /var/lib/dovecot/sieve.d/
RUN find /var/lib/dovecot/sieve.d/ -type f -name '*.sieve' -exec sievec -d {} \; # hadolint ignore=DL4006
RUN find /var/lib/dovecot/sieve.d/ -type f -name '*.sieve' -print0 | xargs -0n1 sievec -d
VOLUME /var/mail VOLUME /var/mail
VOLUME /run/dovecot VOLUME /run/dovecot
EXPOSE 993 25 EXPOSE 993 25
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment