ai-resume-analyzer / Dockerfile
ahzamkidwai
New Code
9957ec8
raw
history blame contribute delete
414 Bytes
# ---------- Runtime Stage ----------
FROM python:3.12-slim
WORKDIR /app
# Set Hugging Face cache directory to a writable location
ENV HF_HOME=/app/.cache
ENV TRANSFORMERS_CACHE=/app/.cache
ENV HF_HUB_CACHE=/app/.cache
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Hugging Face Spaces expects port 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]