[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.
This commit is contained in:
jonathanmetzman 2021-03-09 10:06:44 -08:00 committed by GitHub
parent 39483b8403
commit c3124a0843
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -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