Spaces:
Sleeping
Sleeping
Download Dockerfile from 1akshith/RootCauseArena: direct link, hf CLI and curl.
- Browser
- Download file 538 Bytes
-
https://huggingface.co/spaces/1akshith/RootCauseArena/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/1akshith/RootCauseArena/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/1akshith/RootCauseArena/resolve/main/Dockerfile
538 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Copy requirements first for caching | |
| COPY requirements.txt . | |
| # Install Python packages only (no gcc needed) | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy all source files | |
| COPY . . | |
| # HuggingFace Spaces requires port 7860 | |
| EXPOSE 7860 | |
| HEALTHCHECK --interval=10s --timeout=5s --start-period=5s --retries=3 CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:7860/health')" | |
| # Start server | |
| CMD ["uvicorn", "server_v2:app", "--host", "0.0.0.0", "--port", "7860"] | |