# The verification runner: Debian 12 with what both engines' Linux builds link against, a virtual
# display and software OpenGL, so every test runs headless and the same on any machine. Built for
# the test's platform (verify.sh): x86_64 for the official ITGmania builds, arm64 for the timing test.
FROM debian:12-slim

RUN apt-get update && apt-get install -y --no-install-recommends \
      ca-certificates curl python3 xvfb xauth \
      libgl1-mesa-dri libglx0 libglx-mesa0 libopengl0 libglu1-mesa \
      libx11-6 libxext6 libxinerama1 libxrandr2 libxtst6 \
      libgtk-3-0 libgdk-pixbuf-2.0-0 libglib2.0-0 libpulse0 \
    && rm -rf /var/lib/apt/lists/*

ENV LIBGL_ALWAYS_SOFTWARE=1 DISPLAY=:99
WORKDIR /kit
