aboutsummaryrefslogtreecommitdiff
path: root/infra/base-images
diff options
context:
space:
mode:
authorjonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com>2021-02-18 09:49:41 -0800
committerGitHub <noreply@github.com>2021-02-18 09:49:41 -0800
commitd7164ef352e00e5e01a751274beda3c282dfafbf (patch)
tree66688ddb2212281ce3de1d450eb81cd9c460cb63 /infra/base-images
parent98e9d2457924aee3e28b6310e33c621ba4432951 (diff)
downloadoss-fuzz-d7164ef352e00e5e01a751274beda3c282dfafbf.tar.gz
[infra] Remove unneeded binaries, docs from CMake install (#5161)
This should reduce the image layer size from 127 MB to 57 MB
Diffstat (limited to 'infra/base-images')
-rw-r--r--infra/base-images/base-clang/Dockerfile3
1 files changed, 2 insertions, 1 deletions
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