# Server image for the hosted Augur GitHub App (the `roost serve` webhook).
# Built by deploy/docker-compose.yml. The cold-start model + private key are
# MOUNTED at runtime (not baked), so this image carries no secrets/model.
FROM python:3.12-slim

# git: mine repos.  libgomp1: OpenMP runtime required by LightGBM's native lib.
RUN apt-get update && apt-get install -y --no-install-recommends git libgomp1 \
    && rm -rf /var/lib/apt/lists/*

WORKDIR /app
COPY pyproject.toml README.md ./
COPY src ./src
RUN pip install --no-cache-dir ".[serve]"

EXPOSE 8000
CMD ["roost", "serve", "--host", "0.0.0.0", "--port", "8000"]
