-
Notifications
You must be signed in to change notification settings - Fork 60
/
Copy pathDockerfile
66 lines (53 loc) · 1.7 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
65
66
FROM dockcross/base:latest
MAINTAINER Matt McCormick <matt.mccormick@kitware.com>
ENV DEFAULT_DOCKCROSS_IMAGE thewtex/opengl
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 && \
apt-get remove -y python-pip && \
wget https://bootstrap.pypa.io/get-pip.py && \
python get-pip.py && \
pip install supervisor-stdout && \
apt-get -y clean
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"]
# Build-time metadata as defined at http://label-schema.org
ARG BUILD_DATE
ARG IMAGE
ARG VCS_REF
ARG VCS_URL
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.name=$IMAGE \
org.label-schema.description="An image based on debian/jessie containing an X_Window_System which supports rendering graphical applications, including OpenGL apps" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url=$VCS_URL \
org.label-schema.schema-version="1.0"