From 485c5d6c3fa017a4d815a2cd7a9a094971c39f10 Mon Sep 17 00:00:00 2001 From: Jean-Pierre Busch <110477057+jpbusch@users.noreply.github.com> Date: Thu, 18 Jan 2024 15:32:40 +0100 Subject: [PATCH] remove unnecessary `apt-get update` in Dockerfile Co-authored-by: Lennart Reiher --- docker/Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 799e056..fb70eeb 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -208,8 +208,7 @@ RUN source /opt/ros/$ROS_DISTRO/setup.bash && \ # install desired ROS 2 middleware ARG RMW_IMPLEMENTATION ENV RMW_IMPLEMENTATION=${RMW_IMPLEMENTATION} -RUN apt-get update && \ - if [[ "$ROS_VERSION" == "2" ]]; then \ +RUN if [[ "$ROS_VERSION" == "2" ]]; then \ apt-get update && \ RMW_PACKAGE=ros-$ROS_DISTRO-$(echo $RMW_IMPLEMENTATION | tr '_' '-') && \ apt-get install -y $RMW_PACKAGE && \