1234567891011121314151617181920212223242526272829303132333435363738 |
- FROM alpine:3.5.2
- 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
- RUN apk --update --upgrade add \
- bash \
- fluxbox \
- git \
- socat \
- supervisor \
- x11vnc \
- xterm \
- xvfb
- RUN git clone https://github.com/kanaka/noVNC.git /root/noVNC \
- && git clone https://github.com/kanaka/websockify /root/noVNC/utils/websockify \
- && rm -rf /root/noVNC/.git \
- && rm -rf /root/noVNC/utils/websockify/.git \
- && apk del git
- COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
- RUN sed -i -- "s/ps -p/ps -o pid | grep/g" /root/noVNC/utils/launch.sh
- EXPOSE 8080
- CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
|