Spaces:
Runtime error
Runtime error
Download dockerfile from webcodelab/AI-Resume-Ranker-API: direct link, hf CLI and curl.
- Browser
- Download file 454 Bytes
-
https://huggingface.co/spaces/webcodelab/AI-Resume-Ranker-API/resolve/a2ebe7a5704f134caa60854fb43f147f9fe01475/dockerfile
- Command line
-
hf download hf://spaces/webcodelab/AI-Resume-Ranker-API@a2ebe7a5704f134caa60854fb43f147f9fe01475/dockerfile
-
curl -L -o dockerfile https://huggingface.co/spaces/webcodelab/AI-Resume-Ranker-API/resolve/a2ebe7a5704f134caa60854fb43f147f9fe01475/dockerfile
454 Bytes
| FROM python:3.10-slim | |
| WORKDIR /app | |
| # Install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy all files | |
| COPY . . | |
| # Optional: avoid using cached Hugging Face models in root directory | |
| ENV TRANSFORMERS_CACHE=/app/cache | |
| ENV HF_HOME=/app/cache | |
| # Set PYTHONPATH (useful if you're importing from app/) | |
| ENV PYTHONPATH=/app | |
| # HF Spaces default port is 7860 | |
| EXPOSE 7860 | |
| # Start server | |
| CMD ["python", "app.py"] | |