Skip to content

Commit 189f35a

Browse files
Dockerfile: clean the rosdep layer (#923) (#923)
1 parent 14e0206 commit 189f35a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Dockerfile/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ RUN mkdir -p /home/ros2_ws/src \
1212
fi \
1313
&& rosdep update \
1414
&& apt-get update \
15-
&& rosdep install --from-paths ./ -i -y --rosdistro ${ROS_DISTRO}
15+
&& rosdep install --from-paths ./ -i -y --rosdistro ${ROS_DISTRO} \
16+
&& rm -rf /var/lib/apt/lists/*
1617

1718
RUN cd /home/ros2_ws/ \
1819
&& . /opt/ros/"${ROS_DISTRO}"/setup.sh \

0 commit comments

Comments
 (0)