x11-kiosk-docker/Dockerfile
2024-10-30 23:06:35 +01:00

41 lines
1.7 KiB
Docker

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
# TODO: keyboard should be configurable in runtime
# TODO: actually move all input related functionality to separate layer
#RUN printf "\
#Section \"ServerFlags\"\n\
# Option \"AutoAddDevices\" \"False\"\n\
#EndSection\n\
#\n\
#Section \"ServerLayout\"\n\
# Identifier \"Desktop\"\n\
# InputDevice \"Mouse0\" \"CorePointer\"\n\
# InputDevice \"Keyboard0\" \"CoreKeyboard\"\n\
#EndSection\n\
#\n\
#Section \"InputDevice\"\n\
# Identifier \"Keyboard0\"\n\
# Option \"CoreKeyboard\"\n\
# Option \"Device\" \"/dev/input/event4\"\n\
# Driver \"evdev\"\n\
#EndSection\n\
#\n\
#Section \"InputDevice\"\n\
# Identifier \"Mouse0\"\n\
# Driver \"mouse\"\n\
# Option \"Protocol\" \"auto\"\n\
# Option \"Device\" \"/dev/input/mice\"\n\
# 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 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
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