[infra] Remove unneeded binaries, docs from CMake install (#5161)

This should reduce the image layer size from 127 MB to 57 MB
This commit is contained in:
jonathanmetzman 2021-02-18 09:49:41 -08:00 committed by GitHub
parent 98e9d24579
commit d7164ef352
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -25,7 +25,8 @@ RUN apt-get update && apt-get install -y wget sudo && \
chmod +x cmake-$CMAKE_VERSION-Linux-x86_64.sh && \
./cmake-$CMAKE_VERSION-Linux-x86_64.sh --skip-license --prefix="/usr/local" && \
rm cmake-$CMAKE_VERSION-Linux-x86_64.sh && \
SUDO_FORCE_REMOVE=yes apt-get remove --purge -y wget sudo
SUDO_FORCE_REMOVE=yes apt-get remove --purge -y wget sudo && \
rm -rf /usr/local/doc/cmake /usr/local/bin/cmake-gui
COPY checkout_build_install_llvm.sh /root/
# Keep all steps in the same script to decrease the number of intermediate