# One image for the fleet test master/central and the sensor minions (systemd as PID 1). # Salt itself is NOT installed: the host's onedir is bind-mounted read-only at /opt/saltstack. # Runtime libs are what `ldd` asks of the noble-built strawberry binary. FROM ubuntu:24.04 ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update -q \ && apt-get install -y -q --no-install-recommends \ systemd systemd-sysv dbus ca-certificates curl iproute2 procps util-linux \ python3 file less \ libyara10 libbpf1 libzstd1 libarchive13t64 libcurl4t64 libssl3t64 libstdc++6 \ && apt-get clean && find /var/lib/apt/lists -type f -delete \ && find /etc/systemd/system /lib/systemd/system \ \( -path '*.wants/*' -o -path '*/sockets.target.wants/*' \) \ \( -name '*getty*' -o -name '*udev*' -o -name 'systemd-update-utmp*' -o -name 'systemd-remount-fs*' \) -delete \ && ln -sf /opt/saltstack/salt/salt-call /usr/local/bin/salt-call \ && ln -sf /opt/saltstack/salt/salt /usr/local/bin/salt \ && ln -sf /opt/saltstack/salt/salt-run /usr/local/bin/salt-run \ && ln -sf /opt/saltstack/salt/salt-key /usr/local/bin/salt-key STOPSIGNAL SIGRTMIN+3 CMD ["/sbin/init"]