- 引入AgentTeamOrchestrator支持多agent协同任务执行 - 增加第三方swarms库依赖并配置git协议替换以改善包管理 - 扩展DelegationManager支持团队任务调度和进度跟踪 - 实现中文bigram分词算法提升中文任务检索准确性 - 调整A2AClient和DelegationManager超时时间从30秒增至600秒 - 优化AgentRunResult状态判断逻辑增加有意义摘要检测 - 修改Dockerfile配置npm仓库镜像地址和git协议映射 - 更新CLI命令行接口支持网关端口配置传递 - 调整提供者超时配置机制增强请求稳定性 - 移除过时的support_group字段简化agent描述符结构 - 增强错误处理和进度事件报告机制改进用户体验
44 lines
1.5 KiB
Docker
44 lines
1.5 KiB
Docker
FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim
|
|
|
|
# Install Node.js 20 for the WhatsApp bridge
|
|
RUN apt-get update && \
|
|
apt-get install -y --no-install-recommends curl ca-certificates gnupg git && \
|
|
mkdir -p /etc/apt/keyrings && \
|
|
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \
|
|
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" > /etc/apt/sources.list.d/nodesource.list && \
|
|
apt-get update && \
|
|
apt-get install -y --no-install-recommends nodejs && \
|
|
apt-get purge -y gnupg && \
|
|
apt-get autoremove -y && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
|
|
# Install Python dependencies first (cached layer)
|
|
COPY pyproject.toml README.md LICENSE ./
|
|
RUN mkdir -p nanobot bridge && touch nanobot/__init__.py && \
|
|
uv pip install --system --no-cache . && \
|
|
rm -rf nanobot bridge
|
|
|
|
# Copy the full source and install
|
|
COPY nanobot/ nanobot/
|
|
COPY bridge/ bridge/
|
|
COPY third_party/swarms/ third_party/swarms/
|
|
RUN uv pip install --system --no-cache .
|
|
|
|
# Build the WhatsApp bridge
|
|
WORKDIR /app/bridge
|
|
RUN git config --global url."https://github.com/".insteadOf "ssh://git@github.com/" && \
|
|
git config --global url."https://github.com/".insteadOf "git@github.com:" && \
|
|
npm install && npm run build
|
|
WORKDIR /app
|
|
|
|
# Create config directory
|
|
RUN mkdir -p /root/.nanobot
|
|
|
|
# Gateway default port
|
|
EXPOSE 18790
|
|
|
|
ENTRYPOINT ["nanobot"]
|
|
CMD ["status"]
|