diff --git a/containers/jug/xl.Dockerfile b/containers/jug/xl.Dockerfile
index 0ae17fb9318407f9aafacc2503491bda8d4eb356..162c420dbc3db40e7032d1f8b90c8a5b6e2785b9 100644
--- a/containers/jug/xl.Dockerfile
+++ b/containers/jug/xl.Dockerfile
@@ -31,6 +31,7 @@ ADD https://api.github.com/repos/eic/epic /tmp/epic.json
 COPY setup_detectors.py /tmp
 COPY --from=detectors detectors.yaml /tmp
 RUN --mount=type=cache,target=/ccache/,sharing=locked,id=${TARGETPLATFORM} <<EOF
+set -e
 cd /tmp
 export CCACHE_DIR=/ccache
 [ "z$NIGHTLY" = "z1" ] && NIGHTLY_FLAG="--nightly" || NIGHTLY_FLAG=""