From d43b4b73b98caa8784197abb570293c42d735960 Mon Sep 17 00:00:00 2001 From: cfngc4594 Date: Tue, 25 Mar 2025 21:04:35 +0800 Subject: [PATCH] fix(docker): update bun installation method in Dockerfile --- Dockerfile | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/Dockerfile b/Dockerfile index e6bf7a0..ab49738 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,12 +19,7 @@ RUN \ if [ -f yarn.lock ]; then yarn --frozen-lockfile; \ elif [ -f package-lock.json ]; then npm ci; \ elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm i --frozen-lockfile; \ - elif [ -f bun.lock ] || [ -f bun.lockb ]; then \ - apk add --no-cache curl bash && \ - curl -fsSL https://bun.sh/install | bash && \ - export BUN_INSTALL="$HOME/.bun" && \ - export PATH="$BUN_INSTALL/bin:$PATH" && \ - bun install --frozen-lockfile; \ + elif [ -f bun.lock ] || [ -f bun.lockb ]; then npm install -g bun && bun install --frozen-lockfile; \ else echo "Lockfile not found." && exit 1; \ fi @@ -43,12 +38,7 @@ RUN \ if [ -f yarn.lock ]; then yarn run build; \ elif [ -f package-lock.json ]; then npm run build; \ elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm run build; \ - elif [ -f bun.lock ] || [ -f bun.lockb ]; then \ - apk add --no-cache curl bash && \ - curl -fsSL https://bun.sh/install | bash && \ - export BUN_INSTALL="$HOME/.bun" && \ - export PATH="$BUN_INSTALL/bin:$PATH" && \ - bun run build; \ + elif [ -f bun.lock ] || [ -f bun.lockb ]; then npm install -g bun && bun run build; \ else echo "Lockfile not found." && exit 1; \ fi