# The image of the runs of the cluster tests: simrun (the worker and the demo plugin)
# and its Rust binaries (simrun-bin, the harness) from the wheels of the working tree,
# with the dependencies of the python harness only. The wheels stay in /opt/simrun,
# so the image is also the harness image of the builds of the environments
# (`harness_image`), as the image of the service is on a cluster. It runs as root, as
# the images of the environments do: the scratch of a pod (a hostPath, created by
# the kubelet) is writable by root only, and the Rust harness gives every instance a
# directory in it; the session gives the files of root in the store back at its end.
FROM python:3.14-slim-trixie
RUN pip install --no-cache-dir --root-user-action=ignore "pydantic>=2.14" "pyyaml>=6.0.3"
ARG WHEEL
ARG BIN_WHEEL
COPY ${WHEEL} ${BIN_WHEEL} /opt/simrun/
RUN pip install --no-cache-dir --root-user-action=ignore --no-deps \
    /opt/simrun/${WHEEL} /opt/simrun/${BIN_WHEEL}
