-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile.armv7hf.tpl
49 lines (39 loc) · 1.05 KB
/
Dockerfile.armv7hf.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
46
47
48
49
FROM #{FROM}
LABEL #{LABEL}
#{QEMU}
COPY resolv.conf /etc/resolv.conf
# Few tweaks for Fedora base image
RUN mkdir -p /etc/dnf/vars \
&& echo "armhfp" > /etc/dnf/vars/basearch \
&& echo "armv7hl" > /etc/dnf/vars/arch \
&& rm -rf /tmp/* \
&& touch /etc/machine-id
RUN dnf update -y \
&& dnf install -y \
ca-certificates \
findutils \
hostname \
systemd \
tar \
udev \
which \
&& 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"]