diff --git a/containers/jug/xl.Dockerfile b/containers/jug/xl.Dockerfile
index 96b191ea57ff7c760aeafe329bbe7a9fef97744b..22350f5c04376ce6b47beb3ed6d4a28d85555a34 100644
--- a/containers/jug/xl.Dockerfile
+++ b/containers/jug/xl.Dockerfile
@@ -101,11 +101,13 @@ 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 --mount=type=cache,target=/root/.ccache/                                    \
+ENV CCACHE_DIR=/ccache
+RUN --mount=type=cache,target=/ccache/                                          \
     cd /tmp                                                                     \
  && [ "z$NIGHTLY" = "z1" ] && NIGHTLY_FLAG="--nightly" || NIGHTLY_FLAG=""       \
  && /tmp/setup_detectors.py --prefix /opt/detector --config /tmp/detectors.yaml \
                          $NIGHTLY_FLAG                                          \
+ && ccache --show-stats                                                         \
  && rm /tmp/setup_detectors.py
 
 ## Hotfix for misbehaving OSG nodes