forked from thewtex/docker-opengl
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
47 lines (37 loc) · 1.03 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
FROM debian:8
MAINTAINER Matt McCormick <[email protected]>
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
git \
libgl1-mesa-dri \
menu \
net-tools \
openbox \
python-pip \
sudo \
supervisor \
tint2 \
x11-xserver-utils \
x11vnc \
xinit \
xserver-xorg-video-dummy \
xserver-xorg-input-void \
websockify && \
rm -f /usr/share/applications/x11vnc.desktop && \
pip install supervisor-stdout
COPY etc/skel/.xinitrc /etc/skel/.xinitrc
RUN useradd -m -s /bin/bash user
USER user
RUN cp /etc/skel/.xinitrc /home/user/
USER root
RUN echo "user ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/user
RUN git clone https://github.com/kanaka/noVNC.git /opt/noVNC && \
cd /opt/noVNC && \
git checkout 6a90803feb124791960e3962e328aa3cfb729aeb && \
ln -s vnc_auto.html index.html
# noVNC (http server) is on 6080, and the VNC server is on 5900
EXPOSE 6080 5900
COPY etc /etc
COPY usr /usr
ENV DISPLAY :0
WORKDIR /root
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf"]