vectorisationResume / Dockerfile
ci
deploy 41de2bbc47117a95fcbe79a32379ce957ac522a1
1177cc0
Raw History Blame Contribute Delete
954 Bytes
FROM python:3.11-slim
WORKDIR /app
# hnswlib compiles a C++ extension
RUN apt-get update && apt-get install -y --no-install-recommends build-essential && rm -rf /var/lib/apt/lists/*
# Install dependencies first (cached layer)
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy all source files
COPY task1_module.py .
COPY task2_module.py .
COPY task3_internship_profiles_module.py .
COPY app.py .
COPY ifind_log.py .
COPY localrun.py .
COPY vectorizer_hnsw_pipeline.py .
COPY recommender.py .
COPY services.py .
# GIT_SHA (written by deploy_hf.sh) is reported by GET /version; optional
COPY GIT_SHA* ./
# Copy model artifacts
COPY task1-tfidf_vectorizer.pkl .
COPY skill_clusters.json .
COPY skill_to_category.json .
# bert_model_saved is NOT copied — model is downloaded from HuggingFace on first startup
# HF Spaces expects port 7860
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]