fix(build): configure Docker pip mirrors with locked fallback [skip ci]

This commit is contained in:
Pigway
2026-10-09 00:02:09 +08:00
parent 32229609c9
commit b9b33b83bb
7 changed files with 64 additions and 7 deletions
+6
View File
@@ -364,6 +364,12 @@ class Deploy:
command = ["build", "--pull", "-t", image]
now = datetime.now(UTC).isoformat()
for key, value in {
"DOCKER_PIP_INDEX_URL": self.env.get("DOCKER_PIP_INDEX_URL")
or "https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple",
"DOCKER_PIP_FALLBACK_INDEX_URL": self.env.get(
"DOCKER_PIP_FALLBACK_INDEX_URL"
)
or "https://pypi.org/simple",
"DEBIAN_MIRROR": self.env.get("DEBIAN_MIRROR") or "deb.debian.org",
"DEBIAN_SECURITY_MIRROR": self.env.get("DEBIAN_SECURITY_MIRROR")
or "deb.debian.org",