-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathDockerfile
79 lines (76 loc) · 1.66 KB
/
Dockerfile
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
FROM rockylinux:9
LABEL maintainer="tim@mondoo.com"
ARG BUILD_DATE
ARG VCS_REF
LABEL org.opencontainers.image.created=$BUILD_DATE
LABEL org.opencontainers.image.title="test-kitchen/dokken-images"
LABEL org.opencontainers.image.description="A Docker container for testing Rocky Linux 9"
LABEL org.opencontainers.image.source="https://github.com/test-kitchen/dokken-images"
LABEL org.opencontainers.image.revision=$VCS_REF
LABEL org.opencontainers.image.vendor="test-kitchen"
LABEL org.opencontainers.image.licenses="Apache-2.0"
# hadolint ignore=DL3041
RUN dnf --allowerasing -y install \
at \
binutils \
bc \
ca-certificates \
cronie \
crontabs \
curl \
diffutils \
dmidecode \
e2fsprogs \
ed \
ethtool \
file \
gettext \
glibc-langpack-en \
gnupg2 \
hostname \
initscripts \
iproute \
iptables \
iputils \
lsof \
nc \
net-tools \
nmap \
make \
man-db \
openssl \
patch \
passwd \
procps \
procps-ng \
psmisc \
policycoreutils \
strace \
sudo \
systemd-sysv \
systemd-udev \
tcpdump \
util-linux \
vim-minimal \
time \
wget \
libxcrypt-compat \
which && \
dnf upgrade -y && \
dnf clean all && \
rm -rf /var/log/* && \
# Don't start any optional services.
find /etc/systemd/system \
/lib/systemd/system \
-path '*.wants/*' \
\( -name '*getty*' \
-or -name '*systemd-logind*' \
-or -name '*systemd-vconsole-setup*' \
-or -name '*systemd-readahead*' \
-or -name '*kdump*' \
-or -name '*dnf-makecache*' \
-or -name '*udev*' \) \
-exec rm -v {} \; && \
systemctl set-default multi-user.target && \
systemctl mask dev-hugepages.mount sys-fs-fuse-connections.mount network.service systemd-journal-flush.service
CMD [ "/usr/lib/systemd/systemd" ]