添加联网搜索工具、自定义channel、语义搜索

This commit is contained in:
龙澳
2026-03-28 15:45:58 +08:00
parent fc10e46033
commit af77a757e8
9 changed files with 39 additions and 11 deletions

View File

@@ -1,12 +1,16 @@
FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim
ENV PATH="/root/.local/bin:${PATH}"
ENV PATH="/usr/local/bin:${PATH}"
# Install nanobot from PyPI via uv tool.
RUN uv tool install --upgrade nanobot-ai -i https://pypi.tuna.tsinghua.edu.cn/simple
# Install nanobot into the system Python so channel plugins can share the same environment.
RUN uv pip install --system --upgrade nanobot-ai -i https://pypi.tuna.tsinghua.edu.cn/simple
# Persist nanobot config/workspace here via volume mount.
RUN mkdir -p /root/.nanobot /opt/mcp
RUN mkdir -p /root/.nanobot /opt/mcp /opt/plugins
# Preinstall local channel plugin into the same env as nanobot (entry point discovery).
COPY nanobot-channel-web /opt/plugins/nanobot-channel-web
RUN uv pip install --system /opt/plugins/nanobot-channel-web -i https://pypi.tuna.tsinghua.edu.cn/simple
# Preinstall local MCP project dependencies into the image.
COPY MCP /opt/mcp
@@ -14,7 +18,7 @@ RUN uv pip install --system -e /opt/mcp/mars-mcp -e /opt/mcp/map-mcp -i https://
WORKDIR /workspace
EXPOSE 18790
EXPOSE 18790 8005 9000
ENTRYPOINT ["nanobot"]
CMD ["status"]