Spaces:
Running
Running
| # ResumeMatch Lab API — Hugging Face Spaces (Docker SDK). Built from the Space root. | |
| FROM python:3.11-slim | |
| WORKDIR /app | |
| ENV PYTHONUNBUFFERED=1 \ | |
| HF_HOME=/app/.hf_cache | |
| COPY requirements.txt ./ | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Pre-bake the embedding model so the first /compare isn't a cold download. | |
| RUN python -c "from sentence_transformers import SentenceTransformer; SentenceTransformer('BAAI/bge-small-en-v1.5')" | |
| # Engine + API + committed corpus snapshot (no venv, tests, docs). | |
| COPY core ./core | |
| COPY stats ./stats | |
| COPY parsers ./parsers | |
| COPY apps/__init__.py ./apps/__init__.py | |
| COPY apps/api ./apps/api | |
| COPY data ./data | |
| COPY embeddings ./embeddings | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "apps.api.main:app", "--host", "0.0.0.0", "--port", "7860"] | |