Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion images/chromium-headful/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,12 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=private,id=ubuntu2204-aptca
xdg-utils \
libvulkan1 \
fonts-liberation \
unzip;
fonts-noto-cjk \
fonts-noto-color-emoji \
fonts-nanum \
fontconfig \
unzip && \
apt-get clean && fc-cache -f

# install ffmpeg manually since the version available in apt is from the 4.x branch due to #drama.
# as of writing these static builds will be the latest 7.0.x release.
Expand Down Expand Up @@ -194,6 +199,10 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=private,id=ubuntu2204-aptca
apt -y install chromium && \
apt --no-install-recommends -y install sqlite3;

# Copy Chromium policy configuration
RUN mkdir -p /etc/chromium/policies/managed
COPY shared/chromium-policies/managed/policy.json /etc/chromium/policies/managed/policy.json

# install Node.js 22.x by copying from the node:22-bullseye-slim stage
COPY --from=node-22 /usr/local/bin/node /usr/local/bin/node
COPY --from=node-22 /usr/local/lib/node_modules /usr/local/lib/node_modules
Expand Down

This file was deleted.

11 changes: 10 additions & 1 deletion images/chromium-headless/image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,13 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=private,id=ubuntu2204-aptca
xvfb \
x11-utils \
xdotool \
fontconfig \
fonts-noto-cjk \
fonts-noto-color-emoji \
fonts-nanum \
software-properties-common \
supervisor;
supervisor; \
fc-cache -f

# install chromium and sqlite3 for debugging the cookies file
RUN --mount=type=cache,target=/var/cache/apt,sharing=private,id=ubuntu2204-aptcache \
Expand All @@ -75,6 +80,10 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=private,id=ubuntu2204-aptca
apt-get -y install chromium && \
apt-get --no-install-recommends -y install sqlite3;

# Copy Chromium policy configuration
RUN mkdir -p /etc/chromium/policies/managed
COPY shared/chromium-policies/managed/policy.json /etc/chromium/policies/managed/policy.json

# Install FFmpeg (latest static build) for the recording server
RUN --mount=type=cache,target=/tmp/cache/ffmpeg,id=ffmpeg \
<<-'EOT'
Expand Down
5 changes: 5 additions & 0 deletions shared/chromium-policies/managed/policy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"PasswordManagerEnabled": false,
"AutofillCreditCardEnabled": false,
"TranslateEnabled": false
}
Loading