构建提速:apt/pip/npm 默认走腾讯云镜像(可用 build-arg 覆盖)
- executor/Dockerfile: ARG DEBIAN_MIRROR 换 apt 源(grep 扫 /etc/apt 下两种源文件格式,只替换域名);ARG PIP_INDEX_URL 并以 ENV 烘进镜像,运行期 pip --target 也走镜像 - executor/Dockerfile: 基础阶段补 DEBIAN_FRONTEND=noninteractive(避免无 TTY 下 apt 交互式提问把构建挂死) - app/Dockerfile: ARG NPM_REGISTRY + npm config set registry - docs/DEPLOY.md: 补一行构建源说明与覆盖方式
This commit is contained in:
@@ -114,6 +114,10 @@ docker compose logs -f agent-core # 看到 "Agent server listening on 8080"
|
||||
首次启动会先跑一次 `agent-executor-init`(把技能依赖落到宿主机 `./skills`),跑完自动退出,
|
||||
属正常现象。
|
||||
|
||||
> 镜像构建默认走腾讯云镜像源(apt / pip / npm),否则国内机器上 `apt-get update` 可以卡十几分钟。
|
||||
> 境外构建或想换源:`docker compose build --build-arg DEBIAN_MIRROR=deb.debian.org agent-executor`
|
||||
> (mcp 仓库同理,参数名是 `NPM_REGISTRY`)。腾讯云 CVM 上还可换成内网镜像 `mirrors.tencentyun.com`。
|
||||
|
||||
## 4. 访问
|
||||
|
||||
浏览器打开 **`http://<服务器IP>:8090`**(端口可用 `.env` 里的 `AGENT_PORT` 改)。
|
||||
|
||||
Reference in New Issue
Block a user