From f4ce0e594d04cd19929f13e13ebfbd5b9b62f621 Mon Sep 17 00:00:00 2001 From: cfngc4594 Date: Wed, 5 Mar 2025 16:23:10 +0800 Subject: [PATCH] feat(dockerfile): support bun.lockb file --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index a110d17..1384af0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,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 ]; then \ + 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" && \ @@ -25,7 +25,6 @@ RUN \ else echo "Lockfile not found." && exit 1; \ fi - # Rebuild the source code only when needed FROM base AS builder WORKDIR /app @@ -41,7 +40,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 ]; then \ + 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" && \