This repository has been archived by the owner on May 13, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Dockerfile
45 lines (36 loc) · 1.42 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
ARG VERSION
FROM ubuntu:${VERSION:-latest}
LABEL MAINTAINER="DCsunset"
ENV noVNC_version=1.1.0
ENV websockify_version=0.9.0
ENV tigervnc_version=1.10.1
# Local debug
#COPY ./sources.list /etc/apt/
#COPY ./websockify-${websockify_version}.tar.gz /websockify.tar.gz
#COPY ./noVNC-${noVNC_version}.tar.gz /noVNC.tar.gz
# Install apps
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -yq xfce4 xfce4-goodies \
chromium-browser vim wget \
python3-numpy python3-setuptools \
&& rm -rf /var/lib/apt/lists/*
# Install TigerVNC and noVNC
RUN wget "https://bintray.com/tigervnc/stable/download_file?file_path=tigervnc-${tigervnc_version}.x86_64.tar.gz" -O /tigervnc.tar.gz \
&& tar -xvf /tigervnc.tar.gz -C / \
&& rm /tigervnc.tar.gz \
&& wget https://github.com/novnc/websockify/archive/v${websockify_version}.tar.gz -O /websockify.tar.gz \
&& tar -xvf /websockify.tar.gz -C / \
&& cd /websockify-${websockify_version} \
&& python3 setup.py install \
&& cd / && rm -r /websockify.tar.gz /websockify-${websockify_version} \
&& wget https://github.com/novnc/noVNC/archive/v${noVNC_version}.tar.gz -O /noVNC.tar.gz \
&& tar -xvf /noVNC.tar.gz -C / \
&& cd /noVNC-${noVNC_version} \
&& ln -s vnc.html index.html \
&& rm /noVNC.tar.gz
COPY ./config/helpers.rc /root/.config/xfce4/
COPY ./config/chromium-WebBrowser.desktop /root/.local/share/xfce4/helpers/
COPY ./start.sh /
WORKDIR /root
EXPOSE 5900 6080
CMD [ "/start.sh" ]