Download Dockerfile from arimatch1/crewhub-agent-promptfoo: direct link, hf CLI and curl.
- Browser
- Download file 960 Bytes
-
https://huggingface.co/spaces/arimatch1/crewhub-agent-promptfoo/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/arimatch1/crewhub-agent-promptfoo/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/arimatch1/crewhub-agent-promptfoo/resolve/main/Dockerfile
960 Bytes
| FROM python:3.12-slim | |
| WORKDIR /app | |
| # Install Node.js (required for promptfoo CLI) | |
| RUN apt-get update && apt-get install -y --no-install-recommends curl && \ | |
| curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \ | |
| apt-get install -y --no-install-recommends nodejs && \ | |
| apt-get clean && rm -rf /var/lib/apt/lists/* | |
| # Pre-install promptfoo globally to avoid npx download on every request | |
| RUN npm install -g promptfoo@latest | |
| # Python dependencies | |
| RUN pip install --no-cache-dir \ | |
| fastapi uvicorn httpx litellm pyyaml | |
| # Copy agent code | |
| COPY demo_agents/__init__.py demo_agents/__init__.py | |
| COPY demo_agents/base.py demo_agents/base.py | |
| COPY demo_agents/promptfoo/__init__.py demo_agents/promptfoo/__init__.py | |
| COPY demo_agents/promptfoo/agent.py demo_agents/promptfoo/agent.py | |
| USER 1000 | |
| ENV PORT=7860 | |
| ENV PROMPTFOO_DISABLE_TELEMETRY=1 | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "demo_agents.promptfoo.agent:app", "--host", "0.0.0.0", "--port", "7860"] | |