Skip to content

Commit

Permalink
remove unnecessary apt-get update in Dockerfile
Browse files Browse the repository at this point in the history
Co-authored-by: Lennart Reiher <lennart.reiher@ika.rwth-aachen.de>
  • Loading branch information
jpbusch and lreiher authored Jan 18, 2024
1 parent 3016ade commit 485c5d6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand Down

0 comments on commit 485c5d6

Please sign in to comment.