-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebian-9.Dockerfile
More file actions
32 lines (25 loc) · 862 Bytes
/
debian-9.Dockerfile
File metadata and controls
32 lines (25 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM debian:9-slim
LABEL maintainer="Dennis Hoppe"
ENV container=docker
ARG DEBIAN_FRONTEND=noninteractive
RUN apt update ; \
apt upgrade -y ; \
apt install -y \
iproute2 \
lsb-release \
python3-apt \
python3-dev \
sudo \
systemd \
systemd-sysv ; \
apt clean ; \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN rm -f /lib/systemd/system/multi-user.target.wants/* ; \
rm -f /etc/systemd/system/*.wants/* ; \
rm -f /lib/systemd/system/local-fs.target.wants/* ; \
rm -f /lib/systemd/system/sockets.target.wants/*udev* ; \
rm -f /lib/systemd/system/sockets.target.wants/*initctl* ; \
rm -f /lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup* ; \
rm -f /lib/systemd/system/systemd-update-utmp*
VOLUME ["/sys/fs/cgroup"]
CMD ["/lib/systemd/systemd"]