-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
67 lines (57 loc) · 1.81 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
# Ubuntu 20.04.* LTS
ARG OS_VERSION=focal-20220105
FROM ubuntu:${OS_VERSION}
RUN apt-get update \
&& apt-get install --assume-yes --no-install-recommends \
# Graphical environment and multi-process management
fluxbox \
supervisor \
x11vnc \
xbase-clients \
xterm \
xvfb \
\
# Build time dependencies
curl \
ca-certificates \
# Cleanup to keep image layer small
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /var/lib/apt/lists.d/* \
&& apt-get autoremove \
&& apt-get clean \
&& apt-get autoclean
############### noVNC remote desktop in a browser
# Setup noVNC
ARG NOVNC_VERSION=1.3.0
RUN curl --location \
--output novnc.tar.gz \
https://github.com/novnc/noVNC/archive/refs/tags/v${NOVNC_VERSION}.tar.gz \
&& mkdir --parents /novnc \
&& tar xvzf novnc.tar.gz \
--strip-components=1 \
--directory /novnc \
&& rm novnc.tar.gz
# Setup websockify
ARG WEBSOCKIFY_VERSION=0.10.0
RUN curl --location \
--output websockify.tar.gz \
https://github.com/novnc/websockify/archive/refs/tags/v${WEBSOCKIFY_VERSION}.tar.gz \
&& mkdir --parents /novnc/utils/websockify \
&& tar xvzf websockify.tar.gz \
--strip-components=1 \
--directory /novnc/utils/websockify \
&& rm websockify.tar.gz
RUN ln -s /novnc/vnc.html /novnc/index.html
############### Multi-process startup configuration
COPY ./system/services/ /services/
ADD ./system/supervisord.conf /etc/supervisord.conf
############### Graphical environment configuration
ENV DISPLAY :0
ENV RESOLUTION=1280x800
ENV NOVNC_PORT=8080
# Fluxbox
COPY ./system/.fluxbox/ /root/.fluxbox/
############### Expose ports
# noVNC
EXPOSE 8080
ENTRYPOINT ["/usr/bin/supervisord", "--configuration=/etc/supervisord.conf"]