From 491d2827ff8edeaa1f178408fed77ff2aa27f4f1 Mon Sep 17 00:00:00 2001 From: Yutaka Kondo Date: Mon, 27 May 2024 18:28:05 +0900 Subject: [PATCH] feat(docker): cache `ccache` to the Docker build cache (#4772) --- docker/autoware-openadk/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/autoware-openadk/Dockerfile b/docker/autoware-openadk/Dockerfile index 4d0cd0d31b0..0ee7ebfa0d2 100644 --- a/docker/autoware-openadk/Dockerfile +++ b/docker/autoware-openadk/Dockerfile @@ -88,7 +88,7 @@ RUN --mount=type=ssh \ # Build Autoware COPY --from=src-imported /autoware/src /autoware/src -RUN source /opt/ros/"$ROS_DISTRO"/setup.bash \ +RUN --mount=type=cache,target=/var/tmp/ccache source /opt/ros/"$ROS_DISTRO"/setup.bash \ && colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release --cmake-args \ " -Wno-dev" \ " --no-warn-unused-cli" \