Skip to content

Commit 805159f

Browse files
committed
Add archivebox user to video and render groups with correct GIDs
1 parent 125217d commit 805159f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,15 @@ FROM archivebox/archivebox:0.8.5rc51
33
# Switch to root to install Chrome
44
USER root
55

6-
# Install Chrome as root
6+
# Install Chrome as root and add archivebox user to video/render groups
77
RUN 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
1417
COPY --chown=root:root --chmod=755 entrypoint.sh /custom_entrypoint.sh

0 commit comments

Comments
 (0)