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