From d7164ef352e00e5e01a751274beda3c282dfafbf Mon Sep 17 00:00:00 2001 From: jonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com> Date: Thu, 18 Feb 2021 09:49:41 -0800 Subject: [PATCH] [infra] Remove unneeded binaries, docs from CMake install (#5161) This should reduce the image layer size from 127 MB to 57 MB --- infra/base-images/base-clang/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/infra/base-images/base-clang/Dockerfile b/infra/base-images/base-clang/Dockerfile index 928e7934f..3c16a8f3c 100644 --- a/infra/base-images/base-clang/Dockerfile +++ b/infra/base-images/base-clang/Dockerfile @@ -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