构建:改用预构建的 Agent Runtime 镜像

This commit is contained in:
Zhu Junhao
2026-09-04 15:45:23 +08:00
parent 595c8da595
commit 4615df3f90
2 changed files with 25 additions and 11 deletions

View File

@@ -21,13 +21,12 @@ services:
retries: 20
start_period: 10s
# 此服务负责构建并登记 AgentScope 使用的 Runtime 镜像。
# 此服务负责校验并登记 AgentScope 使用的 Runtime 镜像。
# Runtime 镜像在开发机预先构建并导入服务器;此服务只校验镜像存在,不在服务器构建或拉取。
# 它成功退出后,后端会通过 Docker Socket 按 Session 动态创建真正执行任务的 Runtime 容器。
agent-runtime:
image: ${AGENT_RUNTIME_IMAGE:-smart-factory-agent-runtime:0.1.0}
build:
context: ./sandbox
dockerfile: Dockerfile
pull_policy: never
command: ["/bin/true"]
restart: "no"
networks: