Skip to content

Commit

Permalink
Clean up caches and intermediate files
Browse files Browse the repository at this point in the history
Helps keep final image as small as possible

Signed-off-by: Sander G. van Dijk <[email protected]>
  • Loading branch information
sgvandijk committed Apr 2, 2021
1 parent 9237973 commit bc9b045
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions installation/cross_compile/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ RUN apt-get update && apt-get install -y \
qemu-user-static \
python3-numpy \
sshfs \
rsync
rsync \
&& rm -rf /var/lib/apt/lists/*
RUN echo user_allow_other >> /etc/fuse.conf

# Add user
Expand All @@ -20,7 +21,7 @@ RUN usermod -aG sudo develop

# ROS2 developmnet dependencies
USER develop
RUN pip3 install \
RUN pip3 install --no-cache-dir \
rosinstall_generator \
colcon-common-extensions \
vcstool \
Expand All @@ -30,8 +31,9 @@ ENV PATH=/home/develop/.local/bin/:$PATH
# Install compiler
USER root
WORKDIR /tmp
RUN wget https://github.com/Pro/raspi-toolchain/releases/latest/download/raspi-toolchain.tar.gz
RUN tar xfz raspi-toolchain.tar.gz --strip-components=1 -C /opt
RUN wget https://github.com/Pro/raspi-toolchain/releases/latest/download/raspi-toolchain.tar.gz \
&& tar xfz raspi-toolchain.tar.gz --strip-components=1 -C /opt \
&& rm raspi-toolchain.tar.gz

# Prepare workspace
USER develop
Expand Down

0 comments on commit bc9b045

Please sign in to comment.