forward .Xauthority

This commit is contained in:
Settel 2025-04-11 13:50:30 +02:00
parent 86651f39c5
commit f1b1890425
2 changed files with 10 additions and 3 deletions

View File

@ -10,12 +10,18 @@ RUN apt-get update && apt-get install -y \
fonts-roboto \
hicolor-icon-theme \
fonts-symbola \
libv4l-0 \
libcanberra-gtk-module \
libexif-dev \
libgl1-mesa-dri \
libgl1-mesa-glx \
dbus-x11 \
chromium-l10n \
chromium
RUN rm -rf /var/lib/apt/lists/* /config/.cache /var/tmp/* /tmp/*
RUN groupadd -r chromium && useradd -r -g chromium -G audio,video chromium \
RUN groupadd -g 1000 chromium && useradd -u 1000 -g chromium -G audio,video chromium \
&& mkdir -p /home/chromium/Downloads && chown -R chromium:chromium /home/chromium
COPY files/ /

View File

@ -16,14 +16,15 @@ run:
--net host \
--memory 512mb \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v /run/dbus/system_bus_socket:/run/dbus/system_bus_socket \
-e DISPLAY=unix$$DISPLAY \
-e XAUTHORITY=/home/chromium/.Xauthority \
-v $$HOME/.Xauthority:/home/chromium/.Xauthority:U \
-v $$HOME/various/downloads:/home/chromium/Downloads \
--device /dev/snd \
--device /dev/dri \
-v /dev/shm:/dev/shm \
--name teams-pwa \
--user=root \
--entrypoint=/bin/bash \
teams-pwa:$(VERSION)
# -v $HOME/.config/google-chrome/:/data \ # if you want to save state