| # SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org> |
| # SPDX-License-Identifier: Apache-2.0 |
| |
| FROM debian:11 |
| |
| ENV container docker |
| ENV LC_ALL C |
| ENV DEBIAN_FRONTEND noninteractive |
| |
| # hadolint ignore=DL3008 |
| RUN apt-get update \ |
| && apt-get install -y --no-install-recommends \ |
| bash \ |
| iproute2 \ |
| python3 \ |
| sudo \ |
| systemd \ |
| && apt-get clean \ |
| && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \ |
| && 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* \ |
| && ln -s /lib/systemd/system /sbin/init \ |
| && systemctl set-default multi-user.target |
| |
| ENV init /lib/systemd/systemd |
| VOLUME [ "/sys/fs/cgroup" ] |
| |
| ENTRYPOINT ["/lib/systemd/systemd"] |