khasi-ner-api / Dockerfile
RansMairoi's picture
Initial NER service: FastAPI + spaCy/RoBERTa pipeline
e0abc36
Raw
History Blame Contribute Delete
449 Bytes
FROM python:3.10-slim
WORKDIR /app
# System deps for spacy-transformers / torch wheels
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# HF Spaces routes its public URL to port 7860 — non-negotiable.
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]