Skip to content

Commit

Permalink
Remove ct-ng sources after installation (to save disk space)
Browse files Browse the repository at this point in the history
  • Loading branch information
tttapa committed Sep 8, 2024
1 parent d9ce45a commit bb50005
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,13 @@ ENV PATH=/home/develop/.local/bin:${PATH}
# Build crosstool-ng
RUN git clone -b master --single-branch --depth 1 \
https://github.com/crosstool-ng/crosstool-ng.git
WORKDIR /home/develop/crosstool-ng
RUN git show --summary && \
RUN cd crosstool-ng && git show --summary && \
./bootstrap && \
mkdir build && cd build && \
../configure --prefix=/home/develop/.local && \
make -j$(($(nproc) * 2)) && \
make install && \
cd .. && rm -rf build
WORKDIR /home/develop
cd /home/develop && rm -rf crosstool-ng

# Patches
COPY --chown=develop:develop patches patches
Expand Down

0 comments on commit bb50005

Please sign in to comment.