This commit is contained in:
gitadmin
2026-09-11 14:56:58 +08:00
parent ace092b7db
commit aeb07fcdb7
@@ -87,9 +87,7 @@ RUN set -eux; \
lib/python3.12/tkinter \ lib/python3.12/tkinter \
lib/python3.12/turtledemo \ lib/python3.12/turtledemo \
lib/python3.12/lib2to3 \ lib/python3.12/lib2to3 \
lib/python3.12/ensurepip \ lib/python3.12/config-3.12-*;
lib/python3.12/config-3.12-* \
lib/python3.12/site-packages/*; \
# ---- 删除 Python 缓存文件 ---- # ---- 删除 Python 缓存文件 ----
find ${PYTHON_HOME} -name '__pycache__' -type d -exec rm -rf {} + 2>/dev/null || true; \ find ${PYTHON_HOME} -name '__pycache__' -type d -exec rm -rf {} + 2>/dev/null || true; \
find ${PYTHON_HOME} -name '*.pyc' -delete; \ find ${PYTHON_HOME} -name '*.pyc' -delete; \