From 1d00b0c2eff3f6cb9c1bcf7cfe4e8436d9b8fb4a Mon Sep 17 00:00:00 2001 From: tnsardesai <18272584+tnsardesai@users.noreply.github.com> Date: Thu, 27 Aug 2026 23:03:08 +0000 Subject: [PATCH] Install regional locale data --- images/chromium-headful/Dockerfile | 4 ++++ images/chromium-headless/image/Dockerfile | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/images/chromium-headful/Dockerfile b/images/chromium-headful/Dockerfile index 452e0db5..604e0dea 100644 --- a/images/chromium-headful/Dockerfile +++ b/images/chromium-headful/Dockerfile @@ -200,7 +200,10 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked,id=$CACHEIDPREFIX-ap xdg-utils \ libvulkan1 \ fontconfig \ + locales \ + tzdata \ unzip && \ + locale-gen en_US.UTF-8 en_GB.UTF-8 en_CA.UTF-8 en_IE.UTF-8 en_SG.UTF-8 && \ apt-get clean && rm -rf /var/lib/apt/lists/* # Install fonts to match a realistic Ubuntu 22.04 desktop fingerprint. @@ -296,6 +299,7 @@ RUN set -eux; \ unzip -q /tmp/cd.zip -d /tmp; \ mv /opt/chrome-linux64 /opt/chrome-for-testing; \ mv /opt/chrome-for-testing/chrome /opt/chrome-for-testing/chromium; \ + for locale in en-CA en-IE en-SG; do cp /opt/chrome-for-testing/locales/en-GB.pak "/opt/chrome-for-testing/locales/${locale}.pak"; done; \ ln -sf /opt/chrome-for-testing/chromium /usr/bin/chromium; \ mv /tmp/chromedriver-linux64/chromedriver /usr/local/bin/chromedriver; \ chmod +x /usr/local/bin/chromedriver /opt/chrome-for-testing/chromium; \ diff --git a/images/chromium-headless/image/Dockerfile b/images/chromium-headless/image/Dockerfile index 920c988b..7f434eda 100644 --- a/images/chromium-headless/image/Dockerfile +++ b/images/chromium-headless/image/Dockerfile @@ -156,11 +156,14 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked,id=$CACHEIDPREFIX-ap xclip \ xdotool \ fontconfig \ + locales \ + tzdata \ fonts-noto-cjk \ fonts-noto-color-emoji \ fonts-noto-mono \ fonts-nanum \ supervisor; \ + locale-gen en_US.UTF-8 en_GB.UTF-8 en_CA.UTF-8 en_IE.UTF-8 en_SG.UTF-8; \ fc-cache -f # sqlite3 for debugging the cookies file; unzip for the chrome-for-testing archives below. @@ -178,6 +181,7 @@ RUN set -eux; \ unzip -q /tmp/cd.zip -d /tmp; \ mv /opt/chrome-linux64 /opt/chrome-for-testing; \ mv /opt/chrome-for-testing/chrome /opt/chrome-for-testing/chromium; \ + for locale in en-CA en-IE en-SG; do cp /opt/chrome-for-testing/locales/en-GB.pak "/opt/chrome-for-testing/locales/${locale}.pak"; done; \ ln -sf /opt/chrome-for-testing/chromium /usr/bin/chromium; \ mv /tmp/chromedriver-linux64/chromedriver /usr/local/bin/chromedriver; \ chmod +x /usr/local/bin/chromedriver /opt/chrome-for-testing/chromium; \