|
@@ -102,8 +102,6 @@ echo "配置 pip 国内镜像源..."
|
|
|
sed -i 's|pip install|pip install -i https://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com|g' Dockerfile
|
|
sed -i 's|pip install|pip install -i https://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com|g' Dockerfile
|
|
|
echo "配置 Poetry 国内镜像源(环境变量)..."
|
|
echo "配置 Poetry 国内镜像源(环境变量)..."
|
|
|
sed -i '/^FROM/a ENV PIP_INDEX_URL=https://mirrors.aliyun.com/pypi/simple/ PIP_TRUSTED_HOST=mirrors.aliyun.com' Dockerfile
|
|
sed -i '/^FROM/a ENV PIP_INDEX_URL=https://mirrors.aliyun.com/pypi/simple/ PIP_TRUSTED_HOST=mirrors.aliyun.com' Dockerfile
|
|
|
-echo "配置 Poetry 源(pyproject.toml)..."
|
|
|
|
|
-sed -i '/^\[tool\.poetry\]/a \\n[[tool.poetry.source]]\\nname = "aliyun"\\nurl = "https://mirrors.aliyun.com/pypi/simple/"\\npriority = "primary"' pyproject.toml
|
|
|
|
|
echo "配置 pip 只使用预编译包(避免 triton 编译问题)..."
|
|
echo "配置 pip 只使用预编译包(避免 triton 编译问题)..."
|
|
|
sed -i '/^FROM/a ENV PIP_ONLY_BINARY=:all:' Dockerfile
|
|
sed -i '/^FROM/a ENV PIP_ONLY_BINARY=:all:' Dockerfile
|
|
|
echo "正在构建并推送 Docker 镜像..."
|
|
echo "正在构建并推送 Docker 镜像..."
|