From 1bf62aba5da85d2aeafe70f3e8b55c5eea828221 Mon Sep 17 00:00:00 2001
From: Wouter Deconinck <wdconinc@gmail.com>
Date: Tue, 17 Jan 2023 04:58:26 +0000
Subject: [PATCH] Cache mount ccache

---
 containers/jug/xl.Dockerfile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/containers/jug/xl.Dockerfile b/containers/jug/xl.Dockerfile
index 657c22b03..e7f75f883 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                                          \
-- 
GitLab