-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
45 lines (37 loc) · 1.25 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
FROM ubuntu:16.04
MAINTAINER luxianglin
COPY copyables /
ADD https://dl.google.com/linux/linux_signing_key.pub /tmp/
RUN apt-key add /tmp/linux_signing_key.pub \
&& apt-get update \
&& apt-get install -y \
google-chrome-stable \
chrome-remote-desktop \
fonts-takao \
pulseaudio \
supervisor \
x11vnc \
fluxbox \
ttf-wqy-microhei \
ttf-wqy-zenhei \
xfonts-wqy \
flashplugin-installer \
&& apt-get clean \
&& rm -rf /var/cache/* /var/log/apt/* /var/lib/apt/lists/* /tmp/* \
&& useradd -m -G chrome-remote-desktop,pulse-access chrome \
&& ln -s /crdonly /usr/local/sbin/crdonly \
&& ln -s /update /usr/local/sbin/update \
&& mkdir -p /home/chrome/.config/chrome-remote-desktop \
&& mkdir -p /home/chrome/.fluxbox \
&& echo ' \n\
session.screen0.toolbar.visible: false\n\
session.screen0.fullMaximization: true\n\
session.screen0.maxDisableResize: true\n\
session.screen0.maxDisableMove: true\n\
session.screen0.defaultDeco: NONE\n\
' >> /home/chrome/.fluxbox/init \
&& chown -R chrome:chrome /home/chrome/.config /home/chrome/.fluxbox
VOLUME ["/home/chrome"]
EXPOSE 5900
ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]