From d12c808279d8e8028d4ec04995d59c5e60728b2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agn=C3=A8s=20Toulet?= <35176601+AgnesToulet@users.noreply.github.com> Date: Thu, 30 May 2024 10:27:26 +0200 Subject: [PATCH] Docker: Fix renderer plugin in custom Dockerfile (#88223) * Docker: fix renderer plugin in custom Dockerfile * Update Dockerfile --- packaging/docker/custom/Dockerfile | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/packaging/docker/custom/Dockerfile b/packaging/docker/custom/Dockerfile index 924a631a68a..060d9f1a28a 100644 --- a/packaging/docker/custom/Dockerfile +++ b/packaging/docker/custom/Dockerfile @@ -32,10 +32,17 @@ RUN mkdir -p "$GF_PATHS_PLUGINS" && \ USER grafana RUN if [ $GF_INSTALL_IMAGE_RENDERER_PLUGIN = "true" ]; then \ - grafana-cli \ - --pluginsDir "$GF_PATHS_PLUGINS" \ - --pluginUrl https://github.com/grafana/grafana-image-renderer/releases/latest/download/plugin-linux-x64-glibc-no-chromium.zip \ - plugins install grafana-image-renderer; \ + if grep -i -q alpine /etc/issue; then \ + grafana-cli \ + --pluginsDir "$GF_PATHS_PLUGINS" \ + --pluginUrl https://github.com/grafana/grafana-image-renderer/releases/latest/download/plugin-alpine-x64-no-chromium.zip \ + plugins install grafana-image-renderer; \ + else \ + grafana-cli \ + --pluginsDir "$GF_PATHS_PLUGINS" \ + --pluginUrl https://github.com/grafana/grafana-image-renderer/releases/latest/download/plugin-linux-x64-glibc-no-chromium.zip \ + plugins install grafana-image-renderer; \ + fi \ fi ARG GF_INSTALL_PLUGINS=""