hub-query-staging / Dockerfile
evalstate's picture
evalstate HF Staff
Expose hf_hub_query tool name on fast-agent 0.8.0
9d6d918 verified
Raw
History Blame Contribute Delete
799 Bytes
FROM python:3.13-slim
RUN apt-get update && \
apt-get install -y \
bash \
git git-lfs \
wget curl procps \
&& rm -rf /var/lib/apt/lists/*
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
WORKDIR /app
COPY wheels /tmp/wheels
RUN uv pip install --system --no-cache \
/tmp/wheels/fast_agent_mcp-0.8.0-py3-none-any.whl \
huggingface_hub \
"pydantic-monty==0.0.17"
COPY --link ./ /app
RUN chown -R 1000:1000 /app
USER 1000
ENV FAST_AGENT_SERVE_OAUTH=huggingface
ENV FAST_AGENT_OAUTH_SCOPES=inference-api
EXPOSE 7860
CMD ["fast-agent", "serve", \
"--card", "hf-hub-query.md", \
"--transport", "http", \
"--host", "0.0.0.0", \
"--port", "7860", \
"--instance-scope", "request", \
"--tool-name-template", "{agent}"]