refactor: System 镜像改为多阶段构建,Python 编译产物拷贝至运行阶段

- builder 阶段安装编译依赖并编译安装 Python 3.10.0
- 运行阶段仅 update 系统、拷贝 /usr/local/python3 与 pip.conf
- 先创建 ~/.pip 目录,避免 COPY 将其当作文件
This commit is contained in:
2025-07-26 21:46:53 +08:00
parent 90da24086c
commit ea0f84abb3
3 changed files with 45 additions and 7 deletions
+5
View File
@@ -0,0 +1,5 @@
[global]
index-url = https://mirrors.aliyun.com/pypi/simple
[install]
trusted-host = mirrors.aliyun.com