Skip to content

Commit

Permalink
fix bun on arm cpus
Browse files Browse the repository at this point in the history
  • Loading branch information
djohts committed Dec 30, 2023
1 parent 6d6e95d commit dc7f379
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions nodejs.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dc7f379

Please sign in to comment.