# Purpose: a minimal image holding iperf3 and ping, so that the single-machine path of
#          this lab can run the same measurement procedure between two containers that
#          the multi-machine path runs between two machines
# Platform: all (spark, strix, nvidia with Docker Engine; Track M with Docker Desktop
#           or Podman). The base image is multi-architecture, so it builds on aarch64.
# Minimum memory: 8 GB
# Assumes: nothing but a working container runtime and a network connection to fetch
#          the packages once. Built by compose.yaml; there is no reason to build it
#          by hand.

FROM ubuntu:24.04

RUN apt-get update \
    && apt-get install --yes --no-install-recommends iperf3 iputils-ping \
    && rm -rf /var/lib/apt/lists/*

# No entrypoint: compose.yaml gives each container its own command, one serving and
# one idling until you exec into it.
CMD ["iperf3", "--version"]
