2
0
mirror of https://github.com/siomiz/chrome synced 2024-11-18 21:28:07 +00:00
chrome-vnc-2/Dockerfile

53 lines
1.5 KiB
Docker
Raw Normal View History

FROM ubuntu:18.04
2014-12-04 00:58:42 +00:00
LABEL maintainer="Tomohisa Kusano <siomiz@gmail.com>"
2014-12-04 00:58:42 +00:00
ENV VNC_SCREEN_SIZE 1024x768
2015-06-18 17:09:11 +00:00
COPY copyables /
2015-01-28 01:05:43 +00:00
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
gdebi \
gnupg2 \
2015-06-19 18:24:26 +00:00
fonts-takao \
2015-06-18 17:09:11 +00:00
pulseaudio \
2015-06-19 18:10:52 +00:00
supervisor \
2015-06-20 00:25:04 +00:00
x11vnc \
fluxbox \
eterm
ADD https://dl.google.com/linux/linux_signing_key.pub \
https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
https://dl.google.com/linux/direct/chrome-remote-desktop_current_amd64.deb \
/tmp/
RUN apt-key add /tmp/linux_signing_key.pub \
&& gdebi --non-interactive /tmp/google-chrome-stable_current_amd64.deb \
&& gdebi --non-interactive /tmp/chrome-remote-desktop_current_amd64.deb
RUN apt-get clean \
2017-07-06 00:27:54 +00:00
&& rm -rf /var/cache/* /var/log/apt/* /var/lib/apt/lists/* /tmp/* \
2015-06-19 17:57:00 +00:00
&& useradd -m -G chrome-remote-desktop,pulse-access chrome \
&& usermod -s /bin/bash chrome \
2015-07-07 22:00:26 +00:00
&& ln -s /crdonly /usr/local/sbin/crdonly \
&& ln -s /update /usr/local/sbin/update \
&& mkdir -p /home/chrome/.config/chrome-remote-desktop \
2017-07-06 00:27:54 +00:00
&& mkdir -p /home/chrome/.fluxbox \
2017-07-06 01:01:23 +00:00
&& 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\
2017-07-06 00:41:19 +00:00
' >> /home/chrome/.fluxbox/init \
&& chown -R chrome:chrome /home/chrome/.config /home/chrome/.fluxbox
2015-01-16 21:49:32 +00:00
VOLUME ["/home/chrome"]
2014-12-04 00:58:42 +00:00
EXPOSE 5900
ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]
2015-02-02 19:56:40 +00:00
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]