diff --git a/images/chromium-headful/Dockerfile b/images/chromium-headful/Dockerfile index 654526c9..4e87c9a7 100644 --- a/images/chromium-headful/Dockerfile +++ b/images/chromium-headful/Dockerfile @@ -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. @@ -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 diff --git a/images/chromium-headful/image-chromium/etc/chromium/policies/managed/autofill.json b/images/chromium-headful/image-chromium/etc/chromium/policies/managed/autofill.json deleted file mode 100644 index b59b0047..00000000 --- a/images/chromium-headful/image-chromium/etc/chromium/policies/managed/autofill.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "PasswordManagerEnabled": false, - "AutofillCreditCardEnabled": false -} - diff --git a/images/chromium-headless/image/Dockerfile b/images/chromium-headless/image/Dockerfile index 23fd86dc..9c354b8b 100644 --- a/images/chromium-headless/image/Dockerfile +++ b/images/chromium-headless/image/Dockerfile @@ -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 \ @@ -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' diff --git a/shared/chromium-policies/managed/policy.json b/shared/chromium-policies/managed/policy.json new file mode 100644 index 00000000..ecd7e58f --- /dev/null +++ b/shared/chromium-policies/managed/policy.json @@ -0,0 +1,5 @@ +{ + "PasswordManagerEnabled": false, + "AutofillCreditCardEnabled": false, + "TranslateEnabled": false +}