Skip to content

Commit

Permalink
clear pip & rosdep cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Interpause committed Jan 18, 2023
1 parent 12c966a commit 208f652
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ RUN apt-get update && apt-get install -y \
&& pip install -r /code/requirements.txt \
&& colcon build --symlink-install \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /root/.ros/rosdep/* \
&& rm -rf /root/.cache/pip \
&& rm -rf log/

RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.10 10
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ rosdep update

When a step in the Dockerfile is changed, subsequent steps are invalidated and need to be rebuilt. Furthermore, ROS workspaces with the same Dockerfile share cache, resulting in less disk usage and shorter rebuilds.

The current Dockerfiles should work in most cases without needing edits. Nonetheless, if the Dockerfile becomes too complex, re-organizing it is fine.
The current Dockerfiles should work in most cases without needing edits. Nonetheless, if the Dockerfile becomes too complex, re-organizing it is fine. See <https://docs.docker.com/develop/develop-images/dockerfile_best-practices/> for more info on Docker layer caching and other Docker tips.

### Change ROS Distro

Expand Down

0 comments on commit 208f652

Please sign in to comment.