Spaces:
Sleeping
Sleeping
Download Dockerfile from Krina2005/ResumeMatching-DLModel: direct link, hf CLI and curl.
- Browser
- Download file 661 Bytes
-
https://huggingface.co/spaces/Krina2005/ResumeMatching-DLModel/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Krina2005/ResumeMatching-DLModel/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Krina2005/ResumeMatching-DLModel/resolve/main/Dockerfile
661 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # System dependency (needed for sklearn / numpy) | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| libgomp1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy requirements first (for caching) | |
| COPY requirements.txt . | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir --upgrade pip \ | |
| && pip install --no-cache-dir -r requirements.txt | |
| # Copy project files | |
| COPY . . | |
| # Pre-download SBERT model (VERY IMPORTANT) | |
| RUN python -c "from sentence_transformers import SentenceTransformer; SentenceTransformer('all-MiniLM-L6-v2')" | |
| # Hugging Face port | |
| EXPOSE 7860 | |
| # Run Flask app | |
| CMD ["python", "app.py"] |