File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,15 @@ FROM archivebox/archivebox:0.8.5rc51
33# Switch to root to install Chrome
44USER root
55
6- # Install Chrome as root
6+ # Install Chrome as root and add archivebox user to video/render groups
77RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmor -o /usr/share/keyrings/google-chrome-keyring.gpg && \
88 echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/google-chrome-keyring.gpg] http://dl.google.com/linux/chrome/deb/ stable main' > /etc/apt/sources.list.d/google-chrome.list && \
99 apt update && \
1010 apt install -y google-chrome-stable && \
11- rm -rf /var/lib/apt/lists/*
11+ rm -rf /var/lib/apt/lists/* && \
12+ groupadd -f -g 44 video && \
13+ groupadd -f -g 993 render && \
14+ usermod -a -G video,render archivebox
1215
1316# Copy custom entrypoint that handles both shell and archivebox commands
1417COPY --chown=root:root --chmod=755 entrypoint.sh /custom_entrypoint.sh
You can’t perform that action at this time.
0 commit comments