This commit is contained in:
Simon Zeyer 2024-10-30 22:33:33 +00:00
parent 791dc429d3
commit b44154cd1d
2 changed files with 14 additions and 2 deletions

View File

@ -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

2
entrypoint.sh Normal file
View File

@ -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"