Spaces:
Sleeping
Sleeping
Download Dockerfile from Ajjack404/dev-env-debugger: direct link, hf CLI and curl.
- Browser
- Download file 419 Bytes
-
https://huggingface.co/spaces/Ajjack404/dev-env-debugger/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Ajjack404/dev-env-debugger/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Ajjack404/dev-env-debugger/resolve/main/Dockerfile
419 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy source | |
| COPY . . | |
| # HuggingFace Spaces uses port 7860 | |
| EXPOSE 7860 | |
| # Health check | |
| HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ | |
| CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:7860/health')" | |
| CMD ["python", "api.py"] | |