fix(build): configure Docker pip mirrors with locked fallback [skip ci]
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user