From cadae1998608ee3fc51815fbca11a5cafe4e71e6 Mon Sep 17 00:00:00 2001 From: Adar Nimrod Date: Wed, 13 Nov 2019 22:02:27 +0200 Subject: [PATCH] Fail image build when the sieve file is invalid. --- dovecot/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dovecot/Dockerfile b/dovecot/Dockerfile index 04419c0..2850089 100644 --- a/dovecot/Dockerfile +++ b/dovecot/Dockerfile @@ -25,7 +25,8 @@ COPY patch.diff /root/ RUN patch --strip 0 --verbose --directory /etc/dovecot --input /root/patch.diff && \ doveconf 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 /run/dovecot EXPOSE 993 25 -- GitLab