From eddf19dd40bdc2b5b9d2282b3fc9c984fcb5f9b8 Mon Sep 17 00:00:00 2001 From: "cto-new[bot]" <140088366+cto-new[bot]@users.noreply.github.com> Date: Tue, 10 Feb 2026 15:20:13 +0000 Subject: [PATCH] Fix Bun installation failure in Docker build for Portainer --- Dockerfile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d233e4d..10220c6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,12 +23,21 @@ RUN apt-get update \ tar \ xz-utils \ gzip \ + unzip \ libicu-dev \ libssl-dev \ && rm -rf /var/lib/apt/lists/* -RUN curl -fsSL https://bun.sh/install | bash -s -- "bun-v${BUN_VERSION}" \ +RUN set -euo pipefail; \ + arch=$(uname -m); \ + bun_arch=x64; \ + if [ "$arch" = "aarch64" ]; then bun_arch=arm64; fi; \ + curl -fsSL -o /tmp/bun-linux-$bun_arch.zip "https://github.com/oven-sh/bun/releases/download/bun-v${BUN_VERSION}/bun-linux-$bun_arch.zip" \ + && mkdir -p /opt/bun \ + && unzip -q /tmp/bun-linux-$bun_arch.zip -d /opt/bun \ + && ln -sf /opt/bun/bun-linux-$bun_arch/bun /opt/bun/bin/bun \ && ln -sf /opt/bun/bin/bun /usr/local/bin/bun \ + && rm -f /tmp/bun-linux-$bun_arch.zip \ && bun --version RUN curl -fsSL -o /tmp/powershell.tar.gz \