-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile.arm32v7
executable file
·71 lines (61 loc) · 2.1 KB
/
Dockerfile.arm32v7
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
FROM alpine AS builder
# Download QEMU, see https://github.com/docker/hub-feedback/issues/1261
ENV QEMU_URL https://github.com/balena-io/qemu/releases/download/v3.0.0%2Bresin/qemu-3.0.0+resin-arm.tar.gz
RUN apk add curl && curl -L ${QEMU_URL} | tar zxvf - -C . --strip-components 1
FROM arm32v7/debian:buster
COPY --from=builder qemu-arm-static /usr/bin
ENV PATH="/container/scripts:${PATH}"
RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get -q -y update \
&& apt-get -q -y install --no-install-recommends runit \
\
xvfb \
x11vnc \
\
&& apt-get -q -y install openbox \
ttf-dejavu \
\
haproxy \
openssl \
openssh-server \
sudo \
\
python3 \
python3-numpy \
sed \
wget \
rsyslog \
\
&& apt-get -q -y clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
\
&& ln -s /usr/bin/python3 /usr/bin/python \
\
&& head -n $(grep -n RULES /etc/rsyslog.conf | cut -d':' -f1) /etc/rsyslog.conf > /etc/rsyslog.conf.new \
&& mv /etc/rsyslog.conf.new /etc/rsyslog.conf \
&& echo '*.* /dev/stdout' >> /etc/rsyslog.conf \
&& sed -i '/.*imklog*/d' /etc/rsyslog.conf \
\
&& mkdir -p /run/sshd \
\
&& adduser --disabled-password -q --gecos '' app \
&& passwd -d app \
\
&& wget -O novnc.tar.gz https://github.com/novnc/noVNC/archive/v1.2.0.tar.gz \
&& tar xvf novnc.tar.gz \
&& ln -s noVNC-* novnc \
\
&& ln -s /novnc/vnc_lite.html /novnc/index.html \
\
&& wget -O websockify.tar.gz https://github.com/novnc/websockify/archive/v0.9.0.tar.gz \
&& tar xvf websockify.tar.gz \
&& ln -s websockify-* websockify \
\
&& chown app -R /websockify* \
&& chown app -R /no*
VOLUME ["/certs"]
EXPOSE 22 80 443 5900
COPY . /container/
HEALTHCHECK CMD ["docker-healthcheck.sh"]
ENTRYPOINT ["entrypoint.sh"]
CMD [ "runsvdir","-P", "/container/config/runit" ]