From 10ffc327b2d8b92ec10b0df212d3118a9b8606d3 Mon Sep 17 00:00:00 2001 From: EricX-Zhao Date: Mon, 20 Apr 2026 22:50:37 +0300 Subject: [PATCH] Fix Dockerfile to use correct path for ros repos and optimize vcs import command --- cross_compile/ros2/rolling/ros_rolling.Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cross_compile/ros2/rolling/ros_rolling.Dockerfile b/cross_compile/ros2/rolling/ros_rolling.Dockerfile index 9652d70..62a0f42 100644 --- a/cross_compile/ros2/rolling/ros_rolling.Dockerfile +++ b/cross_compile/ros2/rolling/ros_rolling.Dockerfile @@ -7,8 +7,8 @@ ARG ROS_DISTRO WORKDIR /workspace RUN mkdir -p /workspace/src -COPY ros2/ros_rolling.repos . -RUN vcs import --input ros_${ROS_DISTRO}.repos src +COPY ros2/${ROS_DISTRO}/ros_${ROS_DISTRO}.repos . +RUN vcs import --shallow --workers 4 --input ros_${ROS_DISTRO}.repos src RUN echo "Build ros ${ROS_DISTRO}" FROM ${VENDOR_PACKAGES_IMAGE} AS vendor_images