@@ -10,7 +10,7 @@ RUN echo 'cachebuster 2025-09-01' && apt-get update
1010FROM debian-updated AS debs
1111
1212ARG CHROMIUM_VERSION=139.0.7258.154
13- RUN apt-cache depends chromium=${CHROMIUM_VERSION} 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 libnss3-tools \
13+ RUN apt-cache depends chromium=${CHROMIUM_VERSION} 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 util-linux openssl tini ca-certificates locales libnss3-tools \
1414 --recurse --no-recommends --no-suggests --no-conflicts --no-breaks --no-replaces --no-enhances --no-pre-depends | grep '^\w ' | xargs apt-get download
1515RUN mkdir /dpkg && \
1616 find . -type f -name '*.deb' -exec sh -c 'dpkg --extract "$1" /dpkg || exit 5' sh '{}' \;
@@ -23,6 +23,15 @@ RUN apt-cache depends ca-certificates \
2323RUN mkdir /dpkg && \
2424 find . -type f -name '*.deb' -exec sh -c 'dpkg --extract "$1" /dpkg || exit 5' sh '{}' \;
2525
26+ # While we can't move to Debian 13 yet for the final image, use its new build of busybox with security fixes.
27+ FROM debian:13-slim@sha256:c85a2732e97694ea77237c61304b3bb410e0e961dd6ee945997a06c788c545bb AS busybox
28+
29+ RUN apt-get update
30+ RUN apt-cache depends busybox-static \
31+ --recurse --no-recommends --no-suggests --no-conflicts --no-breaks --no-replaces --no-enhances --no-pre-depends | grep '^\w ' | xargs apt-get download
32+ RUN mkdir /dpkg && \
33+ find . -type f -name '*.deb' -exec sh -c 'dpkg --extract "$1" /dpkg || exit 5' sh '{}' \;
34+
2635FROM node:22-alpine@sha256:1b2479dd35a99687d6638f5976fd235e26c5b37e8122f786fcd5fe231d63de5b AS build
2736
2837WORKDIR /src
3847LABEL org.opencontainers.image.source="https://github.com/grafana/grafana-image-renderer/tree/master/Dockerfile"
3948
4049COPY --from=debs /dpkg /
50+ COPY --from=busybox /dpkg/usr/bin/busybox /bin/busybox
51+ COPY --from=busybox /dpkg/usr/bin/busybox /usr/bin/busybox
4152COPY --from=ca-certs /dpkg/usr/share/ca-certificates /usr/share/ca-certificates
4253
4354USER root
0 commit comments