# Schemathesis, pinned.
#
# Pinning the exact version matters more than usual here: the v4 CLI is not
# compatible with v3. Stateful testing is a *phase* (--phases ... stateful),
# not the v3 `--stateful=links` flag, and several report options were renamed.
# Any config written against v3 docs will silently do something different.
FROM python:3.12-slim
ARG ST_VERSION=4.28.0
RUN pip install --no-cache-dir "schemathesis==${ST_VERSION}"
# Record what is actually installed, for the versions manifest.
RUN st --version > /schemathesis-version.txt 2>&1 || schemathesis --version > /schemathesis-version.txt 2>&1
WORKDIR /work
ENTRYPOINT []
