1
0

image: reduce Python packages footprint

This commit is contained in:
Konstantin Demin 2024-10-16 12:16:43 +03:00
parent bb16585e34
commit d50f8ece98
Signed by: krd
GPG Key ID: 4D56F87A8BA65FD0

View File

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