Path: blob/main/packaging/testdata/debian-systemd.Dockerfile
4094 views
# Build a Debian image with systemd configured to test deb package installation. # See the `test-packages` make target and associated script for how this image is used. FROM debian:10 ENV container docker ENV LC_ALL C ENV DEBIAN_FRONTEND noninteractive RUN apt-get update \ && apt-get install -y systemd \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* RUN rm -f /lib/systemd/system/multi-user.target.wants/* \ /etc/systemd/system/*.wants/* \ /lib/systemd/system/local-fs.target.wants/* \ /lib/systemd/system/sockets.target.wants/*udev* \ /lib/systemd/system/sockets.target.wants/*initctl* \ /lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup* \ /lib/systemd/system/systemd-update-utmp* VOLUME [ "/sys/fs/cgroup" ] CMD ["/lib/systemd/systemd"]