diff --git a/containers/jug/xl.Dockerfile b/containers/jug/xl.Dockerfile
index 657c22b0317ba0693c1e919206f4c1e4d4e3d7ab..e7f75f883091079e5e62de0c31eba61ba6bb29fa 100644
--- a/containers/jug/xl.Dockerfile
+++ b/containers/jug/xl.Dockerfile
@@ -121,7 +121,8 @@ ADD https://api.github.com/repos/eic/ip6 /tmp/ip6.json
 ADD https://api.github.com/repos/eic/epic /tmp/epic.json
 COPY setup_detectors.py /tmp
 COPY detectors.yaml /tmp
-RUN cd /tmp                                                                     \
+RUN --mount=type=cache,target=/root/.ccache/                                    \
+    cd /tmp                                                                     \
  && [ "z$NIGHTLY" = "z1" ] && NIGHTLY_FLAG="--nightly" || NIGHTLY_FLAG=""       \
  && /tmp/setup_detectors.py --prefix /opt/detector --config /tmp/detectors.yaml \
                          $NIGHTLY_FLAG                                          \