add message about chromium sandboxing

This commit is contained in:
Emilien 2024-11-17 15:32:29 +01:00
parent e5b5b6e150
commit 8e96931d26
3 changed files with 6 additions and 2 deletions

View file

@ -12,7 +12,7 @@ RUN apk add --no-cache \
chromium \
chromium-chromedriver
WORKDIR /usr/app/src
WORKDIR /app
COPY index.py requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt

View file

@ -36,3 +36,7 @@ These identity tokens (po_token and visitor_data) generated using this tool will
visitor_data: XXX
```
3. Restart Invidious.
## Why running as root for Docker?
In "headless: false", Chromium does not support sanboxing when it is not ran by root user.

View file

@ -10,5 +10,5 @@ sleep 2
echo "[INFO] launching chromium instance"
# Run python script on display 0
# Run python script on display 99
DISPLAY=:99 python index.py