FROM python:3.14-slim
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/

WORKDIR /app
COPY . /app

RUN apt-get update && apt-get install -y --no-install-recommends git
RUN git submodule update --init
RUN uv venv
RUN uv sync
RUN apt-get purge -y --auto-remove git
RUN rm -rf /var/lib/apt/lists/*

CMD ["uv", "run", "python", "-m", "src.main"]