-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile.tpl
45 lines (35 loc) · 935 Bytes
/
Dockerfile.tpl
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
FROM #{FROM}
LABEL #{LABEL}
#{QEMU}
COPY resolv.conf /etc/resolv.conf
# Few tweaks for Fedora base image
RUN rm -rf /tmp/* \
&& touch /etc/machine-id
RUN dnf update -y \
&& dnf install -y \
ca-certificates \
tar \
systemd \
udev \
which \
hostname \
&& dnf clean all
ENV container docker
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 \
console-getty.service \
systemd-vconsole-setup.service
COPY entry.sh /usr/bin/
COPY launch.service /etc/systemd/system/launch.service
RUN systemctl enable launch.service systemd-udevd
STOPSIGNAL 37
VOLUME ["/sys/fs/cgroup"]
ENTRYPOINT ["/usr/bin/entry.sh"]