2018-11-26 22:39:03 +00:00
|
|
|
FROM ubuntu:18.04
|
2014-12-04 00:58:42 +00:00
|
|
|
|
2017-12-11 22:09:37 +00:00
|
|
|
LABEL maintainer="Tomohisa Kusano <siomiz@gmail.com>"
|
2014-12-04 00:58:42 +00:00
|
|
|
|
2018-11-26 22:39:03 +00:00
|
|
|
ENV VNC_SCREEN_SIZE 1024x768
|
2015-06-18 17:09:11 +00:00
|
|
|
|
2018-11-26 22:39:03 +00:00
|
|
|
COPY copyables /
|
2015-01-28 01:05:43 +00:00
|
|
|
|
2018-11-26 22:39:03 +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 \
|
2019-04-26 18:55:28 +00:00
|
|
|
fluxbox \
|
|
|
|
eterm
|
2018-11-26 22:39:03 +00:00
|
|
|
|
|
|
|
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 \
|
2017-12-11 22:09:37 +00:00
|
|
|
&& 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 \
|
2016-08-18 18:56:24 +00:00
|
|
|
&& 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\
|
2017-07-12 21:08:07 +00:00
|
|
|
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
|
|
|
|
|
2017-07-12 21:08:07 +00:00
|
|
|
ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]
|
|
|
|
|
2015-02-02 19:56:40 +00:00
|
|
|
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
|