-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
64 lines (48 loc) · 1.44 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
FROM ubuntu:focal
ARG S6_VER="1.22.1.0"
ARG NO_VNC_VER="1.1.0"
ARG WEB_SOCK_VER="0.9.0"
RUN mkdir /_install
## S6 Overlay
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_VER}/s6-overlay-amd64.tar.gz /_install
RUN tar xzf /_install/s6-overlay-amd64.tar.gz -C / --exclude="./bin" && \
tar xzf /_install/s6-overlay-amd64.tar.gz -C /usr ./bin
ENTRYPOINT ["/init"]
## KDE
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update && \
apt install -y plasma-desktop
RUN apt install -y dbus-x11
## Other Applications
RUN apt install -y dolphin konsole
## VNC
RUN apt install -y tigervnc-standalone-server tigervnc-xorg-extension
ENV DISPLAY=:0 \
SCR_WIDTH=1600 \
SCR_HEIGHT=900
EXPOSE 5900
## NOVNC
ADD https://github.com/novnc/noVNC/archive/v${NO_VNC_VER}.zip /_install
ADD https://github.com/novnc/websockify/archive/v${WEB_SOCK_VER}.zip /_install
RUN cd /_install && \
apt install -y unzip python2 nginx gettext-base && \
unzip v${NO_VNC_VER}.zip && \
unzip v${WEB_SOCK_VER}.zip && \
mv noVNC-${NO_VNC_VER} /novnc && \
mv websockify-${WEB_SOCK_VER} /novnc/utils/websockify && \
ln -s /usr/bin/python2 /usr/bin/python
EXPOSE 8080
ENV PATH_PREFIX=/ \
VNC_RESIZE=scale \
RECON_DELAY=250 \
PAGE_TITLE=KDE \
HOME=/home/abc
WORKDIR /home/abc
VOLUME /home/abc
## All Dependencies Satisfied
COPY _root /
COPY root /
# Cleanup
RUN apt autoremove -y && \
apt clean && \
rm -r /_install