From efb89f39be56802b816803f671d2321f93f9d777 Mon Sep 17 00:00:00 2001 From: Yutaka Kondo Date: Sat, 1 Jun 2024 07:39:21 +0900 Subject: [PATCH] feat(docker): cache `ccache` to the Docker build cache (#4800) cache ccache again Signed-off-by: Yutaka Kondo --- docker/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 137f95f54dc..9a914ac8283 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -101,7 +101,8 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \ # Build Autoware COPY --from=src-imported /autoware/src /autoware/src -RUN source /opt/ros/"$ROS_DISTRO"/setup.bash \ +RUN --mount=type=cache,target=${CCACHE_DIR} \ + source /opt/ros/"$ROS_DISTRO"/setup.bash \ && colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release --cmake-args \ " -Wno-dev" \ " --no-warn-unused-cli" \