[base-builder] Remove unnecessary python files (58 MB) (#5348)

Related: #5170
This commit is contained in:
jonathanmetzman 2021-03-09 18:30:31 -08:00 committed by GitHub
parent 876b84445f
commit 0475bfa16a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -57,7 +57,8 @@ RUN export PYTHON_DEPS="\
ln -s /usr/bin/python3 /usr/bin/python && \
cd .. && \
rm -r /tmp/Python-$PYTHON_VERSION.tar.xz /tmp/Python-$PYTHON_VERSION && \
apt-get remove -y $PYTHON_DEPS # https://github.com/google/oss-fuzz/issues/3888
apt-get remove -y $PYTHON_DEPS && \
rm -rf /usr/local/lib/python3.8/test # https://github.com/google/oss-fuzz/issues/3888
# Install latest atheris for python fuzzing, pyinstaller for fuzzer packaging,
# six for Bazel rules.