Download Dockerfile from agentDebugger/AgentDebugger-training-v3: direct link, hf CLI and curl.
- Browser
- Download file 752 Bytes
-
https://huggingface.co/spaces/agentDebugger/AgentDebugger-training-v3/resolve/ea7105cd4be2baaa5ffd0b4bb01535fb840928cf/Dockerfile
- Command line
-
hf download hf://spaces/agentDebugger/AgentDebugger-training-v3@ea7105cd4be2baaa5ffd0b4bb01535fb840928cf/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/agentDebugger/AgentDebugger-training-v3/resolve/ea7105cd4be2baaa5ffd0b4bb01535fb840928cf/Dockerfile
752 Bytes
| FROM python:3.10-slim | |
| WORKDIR /app | |
| # Install curl for healthcheck | |
| RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/* | |
| # Install dependencies first (layer cache optimization) | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy all application code | |
| COPY . . | |
| # Port 8000 is required by hackathon infrastructure | |
| EXPOSE 8000 | |
| # Health check — hackathon automated ping requires this to return 200 | |
| HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 \ | |
| CMD curl -f http://localhost:8000/health || exit 1 | |
| # Single worker — environment is 2vCPU, multi-worker causes resource issues | |
| CMD ["uvicorn", "env.server:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "1"] | |