forked from Almo7aya/arch-novnc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
61 lines (51 loc) · 1.18 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
# Docker container running ArchLinux accessible through novnc in a browser
FROM archlinux:latest
# Initialize keys
RUN pacman-key --init
RUN pacman-key --populate
# Update all packages
RUN pacman -Syu --noconfirm
# Install additional packages
RUN pacman -S --noconfirm \
arc-gtk-theme \
caja \
enlightenment \
facter \
git \
gnome-keyring \
gtk-engine-murrine \
gtk-engines \
marco \
mate-desktop \
mate-extra \
mate-panel \
mate-session-manager \
mate-settings-daemon \
net-tools \
papirus-icon-theme \
python \
python-numpy \
supervisor \
terminator \
vim \
x11vnc \
xorg-apps \
xorg-server \
xorg-server-xvfb
COPY dconf.sh /root/dconf.sh
# noVNC cooking
WORKDIR /opt/
RUN git clone https://github.com/novnc/noVNC.git
# Avoid another checkout when launching noVnc
WORKDIR /opt/noVNC/utils/
RUN git clone https://github.com/novnc/websockify
# Comfort
WORKDIR /var/log/supervisor/
# Not seems to work, but...
RUN export DISPLAY=:0.0
# Prepare X11, x11vnc, mate and noVNC from supervisor
COPY supervisord.ini /etc/supervisor.d/supervisord.ini
# Be sure that the noVNC port is exposed
EXPOSE 8083
# Launch X11, x11vnc, mate and noVNC from supervisor
CMD ["/usr/bin/supervisord"]