From deb0bb9138f81d23ad8c6b1855bb32687b6f1043 Mon Sep 17 00:00:00 2001 From: Johnson Sun Date: Thu, 24 Oct 2024 18:44:04 +0800 Subject: [PATCH] feat(turtlebot3_ws): Pre-install rosdeps to speed up build Packages copied from the following command: rosdep install --from-paths src --ignore-src -y -r --simulate --- turtlebot3_ws/docker/Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/turtlebot3_ws/docker/Dockerfile b/turtlebot3_ws/docker/Dockerfile index 28e3e169..b902d1d8 100644 --- a/turtlebot3_ws/docker/Dockerfile +++ b/turtlebot3_ws/docker/Dockerfile @@ -142,6 +142,12 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=private \ ros-$ROS_DISTRO-turtlebot3-msgs \ && sudo rm -rf /var/lib/apt/lists/* +# Install ros packages based on TurtleBot3 rosdeps to speed up build +RUN --mount=type=cache,target=/var/cache/apt,sharing=private \ + sudo apt-get update && sudo apt-get install -y \ + ros-$ROS_DISTRO-hls-lfcd-lds-driver \ + && sudo rm -rf /var/lib/apt/lists/* + COPY .bashrc /home/$USERNAME/.bashrc # TODO: Copy additional files here ENTRYPOINT []