# A throwaway Ubuntu 24.04 with systemd as PID 1, python3 and the agent's test dependencies, for
# run.sh. Same layers as the image the first real-systemd run used (docker history).
FROM ubuntu:24.04
ENV DEBIAN_FRONTEND=noninteractive container=docker
RUN apt-get update \
    && apt-get install -y --no-install-recommends \
       systemd systemd-sysv dbus iproute2 procps python3 python3-venv python3-pip ca-certificates \
    && rm -rf /var/lib/apt/lists/* \
    && python3 -m venv /opt/venv \
    && /opt/venv/bin/pip install -q websockets click aiohttp pytest pytest-asyncio
STOPSIGNAL SIGRTMIN+3
CMD ["/sbin/init"]
