-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathDockerfile
35 lines (31 loc) · 1018 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
FROM alpine:edge
RUN \
# Install required packages
echo "http://dl-3.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && \
apk --update --upgrade add \
bash \
fluxbox \
git \
supervisor \
xvfb \
x11vnc \
&& \
# Install noVNC
git clone --depth 1 https://github.com/novnc/noVNC.git /root/noVNC && \
git clone --depth 1 https://github.com/novnc/websockify /root/noVNC/utils/websockify && \
rm -rf /root/noVNC/.git && \
rm -rf /root/noVNC/utils/websockify/.git && \
apk del git && \
sed -i -- "s/ps -p/ps -o pid | grep/g" /root/noVNC/utils/launch.sh
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
EXPOSE 8080
# Setup environment variables
ENV HOME=/root \
DEBIAN_FRONTEND=noninteractive \
LANG=en_US.UTF-8 \
LANGUAGE=en_US.UTF-8 \
LC_ALL=C.UTF-8 \
DISPLAY=:0.0 \
DISPLAY_WIDTH=1024 \
DISPLAY_HEIGHT=768
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]