跟 PIP_INDEX_URL / NPM_REGISTRY 同款:Dockerfile 加 ARG APT_MIRROR,空默 Debian 官方;非空则 sed 替 sources.list[.d/*.sources] 里 deb.debian.org + security.debian.org 的 host 前缀。 腾讯云轻量 / CVM 上跑: --build-arg APT_MIRROR=https://mirrors.cloud.tencent.com RUN.md 镜像构建段加 APT_MIRROR 行,跟 pip/npm 排一起。 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| sandbox | ||