forked from doug-w/docker-novnc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
29 lines (24 loc) · 962 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
FROM alpine:3.6
LABEL [email protected]
ENV HOME=/root \
DEBIAN_FRONTEND=noninteractive \
LANG=en_US.UTF-8 \
LANGUAGE=en_US.UTF-8 \
LC_ALL=C.UTF-8 \
REMOTE_HOST=localhost \
REMOTE_PORT=5900
RUN apk --update --upgrade add git bash supervisor nodejs nodejs-npm \
&& git clone https://github.com/novnc/noVNC.git /root/noVNC \
&& git clone https://github.com/novnc/websockify /root/noVNC/utils/websockify \
&& rm -rf /root/noVNC/.git \
&& rm -rf /root/noVNC/utils/websockify/.git \
&& cd /root/noVNC \
&& npm install npm@latest \
&& npm install \
&& ./utils/use_require.js --as commonjs --with-app \
&& cp /root/noVNC/node_modules/requirejs/require.js /root/noVNC/build \
&& sed -i -- "s/ps -p/ps -o pid | grep/g" /root/noVNC/utils/launch.sh \
&& apk del git nodejs-npm nodejs
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
EXPOSE 8081
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]