forked from u1i/ubuntu-novnc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (31 loc) · 1.07 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
FROM ubuntu:18.04
MAINTAINER [email protected]
EXPOSE 8080 5901
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=Asia/Singapore
RUN apt-get update
RUN apt-get install -y xfce4 xfce4-terminal
RUN apt-get install -y novnc
RUN apt-get install -y tightvncserver websockify
RUN apt-get install -y wget net-tools wget curl chromium-browser firefox openssh-client git
ENV USER root
COPY start.sh /start.sh
RUN chmod a+x /start.sh
RUN useradd -ms /bin/bash user
RUN mkdir /.novnc
RUN chown user:user /.novnc
COPY config /home/user
RUN chown -R user:user /home/user
#WORKDIR /tmp
#RUN wget https://github.com/atom/atom/releases/download/v1.48.0/atom-amd64.deb
#RUN apt-get -y install gvfs-bin
#RUN dpkg -i atom-amd64.deb
RUN apt-get -y install gedit vim
USER user
WORKDIR /.novnc
RUN wget -qO- https://github.com/novnc/noVNC/archive/v1.0.0.tar.gz | tar xz --strip 1 -C $PWD
RUN mkdir /.novnc/utils/websockify
RUN wget -qO- https://github.com/novnc/websockify/archive/v0.6.1.tar.gz | tar xz --strip 1 -C /.novnc/utils/websockify
RUN ln -s vnc.html index.html
WORKDIR /home/user
CMD ["sh","/start.sh"]