diff --git a/Dockerfile b/Dockerfile index c01e6d3..fe8c8e3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,14 @@ FROM ubuntu:oracular # Decrease number of pacakges RUN apt-get update && \ - DEBIAN_FRONTEND='noninteractive' apt-get install -y --no-install-recommends xorg xserver-xorg-input-evdev xserver-xorg-input-all + DEBIAN_FRONTEND='noninteractive' apt-get install -y --no-install-recommends xserver-xorg-video-all \ + xserver-xorg-input-all xserver-xorg-core xinit x11-xserver-utils \ + chromium-browser unclutter + +#apt-get install -y --no-install-recommends xorg xserver-xorg-input-evdev xserver-xorg-input-all + +RUN DEBIAN_FRONTEND='noninteractive' apt-get install -y --no-install-recommends wget gnupg2 +#RUN DEBIAN_FRONTEND='noninteractive' apt-get install -y --no-install-recommends unclutter xinit x11-xserver-utils # TODO: keyboard should be configurable in runtime # TODO: actually move all input related functionality to separate layer @@ -32,9 +39,12 @@ RUN apt-get update && \ # Option \"ZAxisMapping\" \"4 5 6 7\"\n\ #EndSection\n\ #" > /etc/X11/xorg.conf.d/10-input.conf -RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - +RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - RUN sh -c 'echo "deb https://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' RUN apt-get update RUN DEBIAN_FRONTEND='noninteractive' apt-get install -y --no-install-recommends google-chrome-stable +RUN DEBIAN_FRONTEND='noninteractive' apt-get install -y -f + +CMD startx & CMD /usr/bin/xinit google-chrome --kiosk --no-first-run --suppress-message-center-popups --block-new-web-contents --no-default-browser-check --password-store=basic --ignore-certificate-errors --ignore-ssl-errors --simulate-outdated-no-au='Tue, 31 Dec 2199 23:59:59 GMT' "$URL" -- :0 -nolisten tcp vt1 #CMD /usr/bin/X :0 -nolisten tcp vt1 diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100644 index 0000000..06b7058 --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,2 @@ +#!/bin/bash +google-chrome --kiosk --no-first-run --suppress-message-center-popups --block-new-web-contents --no-default-browser-check --password-store=basic --ignore-certificate-errors --ignore-ssl-errors --simulate-outdated-no-au='Tue, 31 Dec 2199 23:59:59 GMT' "$url"