From 86279540ba45fcb6db7b6e186ff4bfafee9054c7 Mon Sep 17 00:00:00 2001 From: jonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com> Date: Wed, 26 Oct 2022 17:00:17 -0400 Subject: [PATCH] Reduce size of instrospector install by 70 MB (#8862) --- infra/base-images/base-clang/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/infra/base-images/base-clang/Dockerfile b/infra/base-images/base-clang/Dockerfile index 2bdb6d4f7..93f825c93 100644 --- a/infra/base-images/base-clang/Dockerfile +++ b/infra/base-images/base-clang/Dockerfile @@ -32,14 +32,15 @@ RUN apt-get update && apt-get install -y wget sudo && \ chmod +x cmake-$CMAKE_VERSION-Linux-$arch.sh && \ ./cmake-$CMAKE_VERSION-Linux-$arch.sh --skip-license --prefix="/usr/local" && \ rm cmake-$CMAKE_VERSION-Linux-$arch.sh && \ - SUDO_FORCE_REMOVE=yes apt-get remove --purge -y wget sudo && \ + SUDO_FORCE_REMOVE=yes apt-get autoremove --purge -y wget sudo && \ rm -rf /usr/local/doc/cmake /usr/local/bin/cmake-gui RUN apt-get update && apt-get install -y git && \ git clone https://github.com/ossf/fuzz-introspector.git fuzz-introspector && \ cd fuzz-introspector && \ git checkout b0e2a4327197b0064ba28892489423013148bd0d && \ - apt-get remove --purge -y git + apt-get autoremove --purge -y git && \ + rm -rf .git COPY checkout_build_install_llvm.sh /root/ # Keep all steps in the same script to decrease the number of intermediate