FROM python:3.12-slim

WORKDIR /app

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

COPY festinger/ ./festinger/
COPY db/ ./db/
COPY wordnet/ ./wordnet/
COPY config.yaml ./

EXPOSE 11434

CMD ["python", "-m", "uvicorn", "festinger.main:app", "--host", "0.0.0.0", "--port", "11434", "--log-level", "info"]
