FROM python:3.13-slim

RUN pip install --no-cache-dir "aiohttp>=3.14.3" "pydantic>=2"
RUN useradd --no-create-home --shell /usr/sbin/nologin mock

WORKDIR /app
COPY . /app/twinbox_mock
ENV PYTHONPATH=/app

USER mock

EXPOSE 8080

CMD ["python", "-m", "twinbox_mock"]
