Merge pull request #19 from southseact-3d/cto-task-ok-so-when-you-deploy-via-portainer-you-get-this-error-pleas

Fix Bun installation failure in Docker build for Portainer
This commit is contained in:
Liam Hetherington
2026-02-10 15:44:04 +00:00
committed by GitHub

View File

@@ -23,12 +23,21 @@ RUN apt-get update \
tar \ tar \
xz-utils \ xz-utils \
gzip \ gzip \
unzip \
libicu-dev \ libicu-dev \
libssl-dev \ libssl-dev \
&& rm -rf /var/lib/apt/lists/* && 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 \ && ln -sf /opt/bun/bin/bun /usr/local/bin/bun \
&& rm -f /tmp/bun-linux-$bun_arch.zip \
&& bun --version && bun --version
RUN curl -fsSL -o /tmp/powershell.tar.gz \ RUN curl -fsSL -o /tmp/powershell.tar.gz \