Skip to content

Commit c34b7d8

Browse files
authored
Docker: Install locales and use en_US.UTF-8 to save non-ASCII files (#683)
* Docker: Install locales and use en_US.UTF-8 to save non-ASCII files * Release: Update changelog for new release
1 parent 450f27d commit c34b7d8

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 4.0.7 (2025-07-25)
2+
3+
- Docker: Install locales and use en_US.UTF-8 to save non-ASCII files, [#683](https://github.com/grafana/grafana-image-renderer/pull/683), [macabu](https://github.com/macabu)
4+
- This fixes #680
5+
16
## 4.0.6 (2025-07-24)
27

38
- Docker: Update Chromium (CVE-2025-8010, CVE-2025-8011), [#682](https://github.com/grafana/grafana-image-renderer/pull/682), [macabu](https://github.com/macabu)

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RUN echo 'cachebuster 2025-07-24' && apt-get update
99

1010
FROM debian-updated AS debs
1111

12-
RUN apt-cache depends chromium chromium-driver chromium-shell chromium-sandbox font-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-khmeros fonts-kacst fonts-freefont-ttf libxss1 unifont fonts-open-sans fonts-roboto fonts-inter bash busybox util-linux openssl tini ca-certificates \
12+
RUN apt-cache depends chromium chromium-driver chromium-shell chromium-sandbox font-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-khmeros fonts-kacst fonts-freefont-ttf libxss1 unifont fonts-open-sans fonts-roboto fonts-inter bash busybox util-linux openssl tini ca-certificates locales \
1313
--recurse --no-recommends --no-suggests --no-conflicts --no-breaks --no-replaces --no-enhances --no-pre-depends | grep '^\w' | xargs apt-get download
1414
RUN mkdir /dpkg && \
1515
find . -type f -name '*.deb' -exec sh -c 'dpkg --extract "$1" /dpkg || exit 5' sh '{}' \;
@@ -44,13 +44,17 @@ SHELL ["/bin/busybox", "sh", "-c"]
4444
RUN /bin/busybox --install
4545
# Verify that the browser was actually installed.
4646
RUN /usr/bin/chromium --version
47+
# This is so the browser can write file names that contain non-ASCII characters.
48+
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && locale-gen en_US.UTF-8
4749
RUN fc-cache -fr
4850
RUN update-ca-certificates --fresh
4951
USER nonroot
5052

5153
ENV CHROME_BIN="/usr/bin/chromium"
5254
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD="true"
5355
ENV NODE_ENV=production
56+
ENV LANG=en_US.UTF-8
57+
ENV LC_ALL=en_US.UTF-8
5458

5559
COPY --from=build /src/node_modules node_modules
5660
COPY --from=build /src/build build

plugin.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
"url": "https://github.com/grafana/grafana-image-renderer/blob/master/LICENSE"
2525
}
2626
],
27-
"version": "4.0.6",
28-
"updated": "2025-07-24"
27+
"version": "4.0.7",
28+
"updated": "2025-07-25"
2929
},
3030
"dependencies": {
3131
"grafanaDependency": ">=11.3.8"

0 commit comments

Comments
 (0)