Skip to content

Commit

Permalink
Remove APT lists from rosjava build layer to save space
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben Garcia committed Mar 22, 2024
1 parent 4911ee9 commit 725c7f2
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions scripts/docker/build_msgs_jar.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,16 @@ FROM ${REMOTE}/${REPO}:msgs-ubuntu20.04

COPY scripts/setup/debians/rosjava /src/msgs/src/scripts

# install dependencies for rosjava build script
RUN apt-get update && apt-get install -y devscripts equivs

# make sure there is a python binary
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 1

# build rosjava debians
RUN cd /src/msgs/src/scripts && /bin/bash build_rosjava_debians.sh --install-with-deps
# install dependencies for rosjava build script
RUN apt-get update && apt-get install -y devscripts equivs

# remove to save disk space
RUN rm -rf /var/lib/apt/lists/*
# build rosjava debians
RUN cd /src/msgs/src/scripts \
&& /bin/bash build_rosjava_debians.sh --install-with-deps \
&& rm -rf /var/lib/apt/lists/*

# compile msg jar files, genjava_message_artifacts only works with bash
RUN ["/bin/bash", "-c", "cd /src/msgs \
Expand Down

0 comments on commit 725c7f2

Please sign in to comment.