Răsfoiți Sursa

注释掉 PIP_ONLY_BINARY(会导致 openai 等包安装失败)

黄中银 3 luni în urmă
părinte
comite
d6826b7680
2 a modificat fișierele cu 4 adăugiri și 4 ștergeri
  1. 2 2
      cognio/buildDockerImage_apq2.ps1
  2. 2 2
      cognio/buildDockerImage_apq3.ps1

+ 2 - 2
cognio/buildDockerImage_apq2.ps1

@@ -75,8 +75,8 @@ else
     git clone $repoUrl
     cd $repoDir
 fi
-echo "配置 pip 只使用预编译包(避免编译问题)..."
-sed -i '/^FROM/a ENV PIP_ONLY_BINARY=:all:' Dockerfile
+# echo "配置 pip 只使用预编译包(避免编译问题)..."
+# sed -i '/^FROM/a ENV PIP_ONLY_BINARY=:all:' Dockerfile
 echo "正在构建 Docker 镜像(原生 arm64 架构)..."
 docker build $tagParams .
 echo "正在推送 Docker 镜像..."

+ 2 - 2
cognio/buildDockerImage_apq3.ps1

@@ -75,8 +75,8 @@ else
     git clone $repoUrl
     cd $repoDir
 fi
-echo "配置 pip 只使用预编译包(避免编译问题)..."
-sed -i '/^FROM/a ENV PIP_ONLY_BINARY=:all:' Dockerfile
+# 注释掉 PIP_ONLY_BINARY(会导致 openai 等包安装失败)
+# sed -i '/^FROM/a ENV PIP_ONLY_BINARY=:all:' Dockerfile
 echo "正在构建 Docker 镜像(原生 amd64 架构)..."
 docker build $tagParams .
 echo "正在推送 Docker 镜像..."