From dc7f3791db5b4ddd20e8d2a692eb2afe0173bfe9 Mon Sep 17 00:00:00 2001 From: djoh Date: Sat, 30 Dec 2023 18:21:48 +0200 Subject: [PATCH] fix bun on arm cpus --- nodejs.Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/nodejs.Dockerfile b/nodejs.Dockerfile index 6f04225..4964639 100644 --- a/nodejs.Dockerfile +++ b/nodejs.Dockerfile @@ -25,10 +25,11 @@ RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \ apt install yarn # Install bun -RUN curl -fLO https://github.com/oven-sh/bun/releases/download/bun-${BUN_VERSION}/bun-linux-x64-baseline.zip && \ - unzip bun-linux-x64-baseline.zip && \ - mv bun-linux-x64-baseline/bun /usr/local/bin/bun && \ - rm bun-linux-x64-baseline.zip +RUN case $TARGETARCH in 'amd64') export target=linux-x64-baseline;; 'arm64') export target=linux-aarch64 && \ + curl -fLo bun-linux.zip https://github.com/oven-sh/bun/releases/download/bun-${BUN_VERSION}/bun-$target.zip && \ + unzip bun-linux.zip && \ + mv bun-linux/bun /usr/local/bin/bun && \ + rm bun-linux.zip # Lib dependencies for puppeteer RUN apt install -y libxdamage1 libgbm1