We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3625dc6 commit 2e69575Copy full SHA for 2e69575
docker/build_scripts/build.sh
@@ -170,10 +170,9 @@ find /opt/_internal -type f -print0 \
170
# We do not need the Python test suites, or indeed the precompiled .pyc and
171
# .pyo files. Partially cribbed from:
172
# https://github.com/docker-library/python/blob/master/3.4/slim/Dockerfile
173
-find /opt/_internal \
+find /opt/_internal -depth \
174
\( -type d -a -name test -o -name tests \) \
175
- -o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
176
- -print0 | xargs -0 rm -f
+ -o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) | xargs rm -rf
177
178
for PYTHON in /opt/python/*/bin/python; do
179
# Smoke test to make sure that our Pythons work, and do indeed detect as
0 commit comments