FROM python:3.12-slim

WORKDIR /app
COPY pyproject.toml ./
COPY stt_server ./stt_server
RUN pip install --no-cache-dir .

EXPOSE 8000
# 1 worker : la mémoire de session est en mémoire process (cohérence mono-worker).
CMD ["uvicorn", "stt_server.app:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "1"]
