aboutsummaryrefslogtreecommitdiff
path: root/infra/base-images
diff options
context:
space:
mode:
authorjonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com>2021-03-09 10:06:44 -0800
committerGitHub <noreply@github.com>2021-03-09 18:06:44 +0000
commitc3124a0843f23f666e30791a2fce3301868f7f65 (patch)
tree38bccb80cff4c642010cd0d28576b468903c00a2 /infra/base-images
parent39483b8403d26e1a4910fdc9d38222aac469ed50 (diff)
downloadoss-fuzz-c3124a0843f23f666e30791a2fce3301868f7f65.tar.gz
[base-runner] Reduce size by ~200 MB by using apt better (#5339)
Don't install recommended packages if it means installing an entire gcc toolchain. We don't need it in the runner.
Diffstat (limited to 'infra/base-images')
-rwxr-xr-xinfra/base-images/base-runner/Dockerfile7
1 files changed, 3 insertions, 4 deletions
diff --git a/infra/base-images/base-runner/Dockerfile b/infra/base-images/base-runner/Dockerfile
index 6aa9c48f6..26e76adbd 100755
--- a/infra/base-images/base-runner/Dockerfile
+++ b/infra/base-images/base-runner/Dockerfile
@@ -35,19 +35,18 @@ COPY --from=base-clang /usr/local/bin/llvm-cov \
/usr/local/bin/llvm-symbolizer \
/usr/local/bin/
-# TODO(metzman): Install libc6-i386 lib32gcc1 instead of libc6-dev-i386 for
-# consistency with ClusterFuzz image and to reduce size.
RUN apt-get update && apt-get install -y \
binutils \
file \
fonts-dejavu \
git \
- libc6-dev-i386 \
+ lib32gcc1 \
+ libc6-i386 \
libcap2 \
python3 \
python3-pip \
wget \
- zip
+ zip --no-install-recommends
RUN git clone https://chromium.googlesource.com/chromium/src/tools/code_coverage /opt/code_coverage && \
pip3 install -r /opt/code_coverage/requirements.txt