Use npm to install Bun (more reliable than GitHub releases)
This commit is contained in:
@@ -30,17 +30,8 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
|
|||||||
libcap-dev && \
|
libcap-dev && \
|
||||||
yarn config set python /usr/bin/python3
|
yarn config set python /usr/bin/python3
|
||||||
|
|
||||||
RUN export ARCH=$(uname -m) && \
|
# Install Bun using npm (more reliable than GitHub downloads)
|
||||||
if [ "$ARCH" = "x86_64" ]; then \
|
RUN npm install -g bun@1.3.1
|
||||||
curl -fSL https://github.com/oven-sh/bun/releases/download/bun-v1.3.1/bun-linux-x64-baseline.zip -o bun.zip; \
|
|
||||||
elif [ "$ARCH" = "aarch64" ]; then \
|
|
||||||
curl -fSL https://github.com/oven-sh/bun/releases/download/bun-v1.3.1/bun-linux-aarch64.zip -o bun.zip; \
|
|
||||||
fi
|
|
||||||
|
|
||||||
RUN unzip bun.zip \
|
|
||||||
&& mv bun-*/bun /usr/local/bin/bun \
|
|
||||||
&& chmod +x /usr/local/bin/bun \
|
|
||||||
&& rm -rf bun.zip bun-*
|
|
||||||
|
|
||||||
RUN bun --version
|
RUN bun --version
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user