FROM ghcr.io/astral-sh/uv:python3.13-bookworm RUN apt-get update && \ apt-get install -y bash git git-lfs wget curl procps && \ rm -rf /var/lib/apt/lists/* WORKDIR /app RUN uv pip install --system --no-cache fast-agent-mcp==0.9.7 huggingface_hub COPY --link ./ /app RUN mkdir -p /app/.cache/huggingface/xet /app/tmp && \ chown -R 1000:1000 /app USER 1000 EXPOSE 7860 ENV FAST_AGENT_SERVE_OAUTH=huggingface ENV PYTHONPATH=/app ENV PYTHONUNBUFFERED=1 ENV HOME=/app ENV XDG_CACHE_HOME=/app/.cache ENV HF_HOME=/app/.cache/huggingface ENV HF_HUB_CACHE=/app/.cache/huggingface/hub ENV HF_XET_CACHE=/app/.cache/huggingface/xet ENV TMPDIR=/app/tmp ENV HF_TOKEN=hf_dummy_startup_token ENV PORT=7860 ENV FASTMCP_HTTP_ALLOWED_HOSTS=["*"] ENV FASTMCP_HTTP_HOST_ORIGIN_PROTECTION=false CMD ["fast-agent", "serve", "--config-path", "fast-agent.yaml", "--agent-cards", "agent-cards/research.md", "--agent-cards", "agent-cards/birch-html.md", "--transport", "http", "--host", "0.0.0.0", "--port", "7860", "--instance-scope", "request"]