-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (19 loc) · 912 Bytes
/
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
FROM debian
RUN dpkg --add-architecture i386
RUN apt update
RUN DEBIAN_FRONTEND=noninteractive apt install wine qemu-kvm *zenhei* xz-utils dbus-x11 curl firefox-esr gnome-system-monitor mate-system-monitor git xfce4 xfce4-terminal tightvncserver wget -y
RUN wget https://github.com/novnc/noVNC/archive/refs/tags/v1.2.0.tar.gz
RUN tar -xvf v1.2.0.tar.gz
RUN mkdir $HOME/.vnc
RUN echo 'Sophia' | vncpasswd -f > $HOME/.vnc/passwd
RUN echo '/bin/env MOZ_FAKE_NO_SANDBOX=1 dbus-launch xfce4-session' > $HOME/.vnc/xstartup
RUN chmod 600 $HOME/.vnc/passwd
RUN chmod 755 $HOME/.vnc/xstartup
RUN echo 'whoami ' >>/Sophia.sh
RUN echo 'cd ' >>/Sophia.sh
RUN echo "su -l -c 'vncserver :2000 -geometry 1360x768' " >>/Sophia.sh
RUN echo 'cd /noVNC-1.2.0' >>/Sophia.sh
RUN echo './utils/launch.sh --vnc localhost:7900 --listen 8900 ' >>/Sophia.sh
RUN chmod 755 /Sophia.sh
EXPOSE 8900
CMD /Sophia.sh