FROM python:3.12-slim

WORKDIR /app

COPY pyproject.toml README.md ./
COPY narrative_harm_classifier ./narrative_harm_classifier

RUN pip install --no-cache-dir .

EXPOSE 8000

CMD ["nhc", "serve", "--host", "0.0.0.0", "--port", "8000"]
