blob: abfc4de2d54168598ef7a4f171a6a2e09e98f32f [file] [log] [blame]
Zack Williams0171fb32021-09-08 22:31:54 -07001# SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org>
2# SPDX-License-Identifier: Apache-2.0
3
4FROM debian:11
5
6ENV container docker
7ENV LC_ALL C
8ENV DEBIAN_FRONTEND noninteractive
9
10# hadolint ignore=DL3008
11RUN apt-get update \
12 && apt-get install -y --no-install-recommends \
13 bash \
14 iproute2 \
15 python3 \
16 sudo \
17 systemd \
18 && apt-get clean \
19 && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
20 && rm -f /lib/systemd/system/multi-user.target.wants/* \
21 /etc/systemd/system/*.wants/* \
22 /lib/systemd/system/local-fs.target.wants/* \
23 /lib/systemd/system/sockets.target.wants/*udev* \
24 /lib/systemd/system/sockets.target.wants/*initctl* \
25 /lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup* \
26 /lib/systemd/system/systemd-update-utmp* \
27 && ln -s /lib/systemd/system /sbin/init \
28 && systemctl set-default multi-user.target
29
30ENV init /lib/systemd/systemd
31VOLUME [ "/sys/fs/cgroup" ]
32
33ENTRYPOINT ["/lib/systemd/systemd"]