FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim ENV PATH="/root/.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 # Persist nanobot config/workspace here via volume mount. RUN mkdir -p /root/.nanobot /opt/mcp # Preinstall local MCP project dependencies into the image. COPY MCP /opt/mcp RUN uv pip install --system -e /opt/mcp/mars-mcp -e /opt/mcp/map-mcp -i https://pypi.tuna.tsinghua.edu.cn/simple WORKDIR /workspace EXPOSE 18790 ENTRYPOINT ["nanobot"] CMD ["status"]