FROM python:3.12-slim

WORKDIR /app

RUN pip install --no-cache-dir fastapi uvicorn[standard] httpx

COPY scripts/taxonomy.py .
COPY scripts/classify_server.py .

ENV KREUZBERG_URL=https://check.i80.dk
ENV PORT=8000

CMD ["sh", "-c", "uvicorn classify_server:app --host 0.0.0.0 --port ${PORT}"]
