File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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
204204RUN 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 && \
You can’t perform that action at this time.
0 commit comments