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" && \