Spaces:
Paused
Paused
File size: 1,038 Bytes
dc1174b ddd660b cfea6f8 ddd660b 07007d5 ddd660b 56ab673 4edc078 07007d5 50371bf dc1174b 6c15c22 ddd660b 54b62f9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | 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"]
|