From d50f8ece98736dfa60c9477e222c9aa9e648e675 Mon Sep 17 00:00:00 2001 From: Konstantin Demin Date: Wed, 16 Oct 2024 12:16:43 +0300 Subject: [PATCH] image: reduce Python packages footprint --- Dockerfile.deps | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Dockerfile.deps b/Dockerfile.deps index 0f3d02f..e690815 100644 --- a/Dockerfile.deps +++ b/Dockerfile.deps @@ -37,6 +37,12 @@ RUN w=$(mktemp -d) ; : "${w:?}" ; \ "${PYTHON_SITE_PACKAGES}/netaddr/tests" \ "${PYTHON_SITE_PACKAGES}/psutil/tests" \ ; \ + truncate -s 0 \ + "${PYTHON_SITE_PACKAGES}/netaddr/eui/iab.idx" \ + "${PYTHON_SITE_PACKAGES}/netaddr/eui/iab.txt" \ + "${PYTHON_SITE_PACKAGES}/netaddr/eui/oui.txt" \ + "${PYTHON_SITE_PACKAGES}/netaddr/eui/oui.idx" \ + ; \ find "${PYTHON_SITE_PACKAGES}/" -type f -name '*.so*' -exec ls -l {} + ; \ echo ; \ find "${PYTHON_SITE_PACKAGES}/" -type f -name '*.so*' -printf '%p\0' \