diff --git a/2/Dockerfile b/2/Dockerfile index 68add4f..6131074 100644 --- a/2/Dockerfile +++ b/2/Dockerfile @@ -35,6 +35,7 @@ RUN set -ex; \ wget -O pypy.tar.bz2 "https://bitbucket.org/pypy/pypy/downloads/pypy2-v${PYPY_VERSION}-${pypyArch}.tar.bz2"; \ echo "$sha256 *pypy.tar.bz2" | sha256sum -c; \ tar -xjC /usr/local --strip-components=1 -f pypy.tar.bz2; \ + find /usr/local/lib-python -depth -type d -a \( -name test -o -name tests \) -exec rm -rf '{}' +; \ rm pypy.tar.bz2; \ \ pypy --version diff --git a/2/slim/Dockerfile b/2/slim/Dockerfile index 5d08b7e..b8b872d 100644 --- a/2/slim/Dockerfile +++ b/2/slim/Dockerfile @@ -43,6 +43,7 @@ RUN set -ex; \ wget -O pypy.tar.bz2 "https://bitbucket.org/pypy/pypy/downloads/pypy2-v${PYPY_VERSION}-${pypyArch}.tar.bz2"; \ echo "$sha256 *pypy.tar.bz2" | sha256sum -c; \ tar -xjC /usr/local --strip-components=1 -f pypy.tar.bz2; \ + find /usr/local/lib-python -depth -type d -a \( -name test -o -name tests \) -exec rm -rf '{}' +; \ rm pypy.tar.bz2; \ \ pypy --version; \ diff --git a/3/Dockerfile b/3/Dockerfile index 2a0a38b..1568f7a 100644 --- a/3/Dockerfile +++ b/3/Dockerfile @@ -35,6 +35,7 @@ RUN set -ex; \ wget -O pypy.tar.bz2 "https://bitbucket.org/pypy/pypy/downloads/pypy3-v${PYPY_VERSION}-${pypyArch}.tar.bz2"; \ echo "$sha256 *pypy.tar.bz2" | sha256sum -c; \ tar -xjC /usr/local --strip-components=1 -f pypy.tar.bz2; \ + find /usr/local/lib-python -depth -type d -a \( -name test -o -name tests \) -exec rm -rf '{}' +; \ rm pypy.tar.bz2; \ \ pypy3 --version diff --git a/3/slim/Dockerfile b/3/slim/Dockerfile index fe8a422..1585c05 100644 --- a/3/slim/Dockerfile +++ b/3/slim/Dockerfile @@ -43,6 +43,7 @@ RUN set -ex; \ wget -O pypy.tar.bz2 "https://bitbucket.org/pypy/pypy/downloads/pypy3-v${PYPY_VERSION}-${pypyArch}.tar.bz2"; \ echo "$sha256 *pypy.tar.bz2" | sha256sum -c; \ tar -xjC /usr/local --strip-components=1 -f pypy.tar.bz2; \ + find /usr/local/lib-python -depth -type d -a \( -name test -o -name tests \) -exec rm -rf '{}' +; \ rm pypy.tar.bz2; \ \ pypy3 --version; \ diff --git a/Dockerfile-slim.template b/Dockerfile-slim.template index b28c53a..c008bea 100644 --- a/Dockerfile-slim.template +++ b/Dockerfile-slim.template @@ -34,6 +34,7 @@ RUN set -ex; \ wget -O pypy.tar.bz2 "https://bitbucket.org/pypy/pypy/downloads/%%TAR%%-v${PYPY_VERSION}-${pypyArch}.tar.bz2"; \ echo "$sha256 *pypy.tar.bz2" | sha256sum -c; \ tar -xjC /usr/local --strip-components=1 -f pypy.tar.bz2; \ + find /usr/local/lib-python -depth -type d -a \( -name test -o -name tests \) -exec rm -rf '{}' +; \ rm pypy.tar.bz2; \ \ %%CMD%% --version; \ diff --git a/Dockerfile.template b/Dockerfile.template index 5118d06..c97f578 100644 --- a/Dockerfile.template +++ b/Dockerfile.template @@ -26,6 +26,7 @@ RUN set -ex; \ wget -O pypy.tar.bz2 "https://bitbucket.org/pypy/pypy/downloads/%%TAR%%-v${PYPY_VERSION}-${pypyArch}.tar.bz2"; \ echo "$sha256 *pypy.tar.bz2" | sha256sum -c; \ tar -xjC /usr/local --strip-components=1 -f pypy.tar.bz2; \ + find /usr/local/lib-python -depth -type d -a \( -name test -o -name tests \) -exec rm -rf '{}' +; \ rm pypy.tar.bz2; \ \ %%CMD%% --version