Skip to content

Commit 0ce2c15

Browse files
committed
Fix cleanup to preserve numpy.testing and torch.testing (public APIs, not test dirs)
1 parent 4fe9aa7 commit 0ce2c15

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docker/dockerfiles/Dockerfile.onnx.jetson.6.2.0

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,10 @@ RUN ln -sf /usr/bin/python3 /usr/bin/python && \
202202
# Remove test directories, development tools, and unnecessary packages to reduce image size (~500MB savings)
203203
# This happens AFTER all package installations to ensure everything gets cleaned
204204
RUN cd /usr/local/lib/python3.10/dist-packages && \
205-
find . -type d \( -name tests -o -name test -o -name testing -o -name __pycache__ \) -exec rm -rf {} + 2>/dev/null || true && \
205+
find . -type d -name tests -exec rm -rf {} + 2>/dev/null || true && \
206+
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true && \
206207
rm -rf debugpy* jupyterlab* jupyter_* notebook* ipython* ipykernel* || true && \
207-
rm -rf torch/bin torch/include torch/test torch/testing || true && \
208+
rm -rf torch/bin torch/include torch/test || true && \
208209
rm -rf onnx/backend/test onnx/test || true && \
209210
rm -rf */examples */benchmarks */docs || true && \
210211
rm -rf skimage/data || true && \

0 commit comments

Comments
 (0)