From 2ce54fef9b2710abfc70eb8830a68c91ad2179cb Mon Sep 17 00:00:00 2001 From: Yutaka Kondo Date: Fri, 7 Jun 2024 22:33:23 +0900 Subject: [PATCH] sharing=locked Signed-off-by: Yutaka Kondo --- docker/Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 4a63c661b34..9abce92aac3 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -84,14 +84,14 @@ RUN --mount=type=ssh \ && apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/* "$HOME"/.cache # Install sccache -RUN wget https://github.com/mozilla/sccache/releases/download/v0.8.1/sccache-dist-v0.8.1-x86_64-unknown-linux-musl.tar.gz -RUN tar -xvf sccache-dist-v0.8.1-x86_64-unknown-linux-musl.tar.gz -RUN mv sccache-dist-v0.8.1-x86_64-unknown-linux-musl/sccache-dist /usr/local/bin/sccache -RUN rm -rf sccache-dist-v0.8.1-x86_64-unknown-linux-musl.tar.gz sccache-dist-v0.8.1-x86_64-unknown-linux-musl +RUN wget https://github.com/mozilla/sccache/releases/download/v0.8.1/sccache-dist-v0.8.1-x86_64-unknown-linux-musl.tar.gz \ + && tar -xvf sccache-dist-v0.8.1-x86_64-unknown-linux-musl.tar.gz && \ + && mv sccache-dist-v0.8.1-x86_64-unknown-linux-musl/sccache-dist /usr/local/bin/sccache && \ + && rm -rf sccache-dist-v0.8.1-x86_64-unknown-linux-musl.tar.gz sccache-dist-v0.8.1-x86_64-unknown-linux-musl # Build Autoware COPY --from=src-imported /autoware/src /autoware/src -RUN --mount=type=cache,target=/root/.cache/sccache \ +RUN --mount=type=cache,target=/root/.cache/sccache,sharing=locked \ ls /root/.cache/sccache && du -sh /root/.cache/sccache \ && source /opt/ros/"$ROS_DISTRO"/setup.bash \ && colcon build --cmake-args \