Skip to content

Commit dba8a82

Browse files
committed
Simply RUN directives
1 parent 12b2835 commit dba8a82

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ros/content.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,11 @@ FROM $FROM_IMAGE AS cacher
5252
ARG OVERLAY_WS
5353

5454
# update package cache
55-
RUN cat <<EOF > /etc/apt/apt.conf.d/docker-clean
55+
RUN rosdep update --rosdistro $ROS_DISTRO && \
56+
cat <<EOF > /etc/apt/apt.conf.d/docker-clean && apt-get update
5657
APT::Install-Recommends "false";
5758
APT::Install-Suggests "false";
5859
EOF
59-
RUN apt-get update && \
60-
rosdep update --rosdistro $ROS_DISTRO
6160

6261
# clone overlay source
6362
WORKDIR $OVERLAY_WS/src

0 commit comments

Comments
 (0)