# Built from the repo root, see docker-compose.yml.
FROM python:3.12-slim AS base
# numpy is only here so the demo scripts can use it inside the sandbox.
RUN pip install --no-cache-dir numpy

# progtc from this checkout, which has the limits.
FROM base AS with-limits
COPY pyproject.toml README.md /src/
COPY src /src/src
RUN pip install --no-cache-dir "/src[server]"

# progtc 0.2.0 from PyPI, the last version without the limits.
FROM base AS without-limits
RUN pip install --no-cache-dir "progtc[server]==0.2.0"
