# Specify the parent image from which we build
FROM debian@sha256:43b845d5864322e89773a602535f5db85debe3356e50488c63dd99bf2cc16899

# Install Systemd
RUN apt-get update && apt-get install -y --no-install-recommends
RUN apt-get install -y apt-utils
RUN apt-get install -y systemd systemd-sysv \
    && rm -rf /var/lib/apt/lists/*

ENV container docker

# We never want these to run in a container
# Feel free to edit the list but this is the one we used
RUN systemctl mask \
    dev-hugepages.mount \
    sys-fs-fuse-connections.mount \
    sys-kernel-config.mount \
    display-manager.service \
    getty@.service \
    systemd-logind.service \
    systemd-remount-fs.service \
    getty.target \
    graphical.target \
    kmod-static-nodes.service

CMD ["/sbin/init"]

