From 596971019b035c61b0e8d7316c452d58cd07364a Mon Sep 17 00:00:00 2001 From: mlogclub Date: Sun, 7 Jun 2026 21:12:11 +0800 Subject: [PATCH] feat: add binutils to Dockerfile and update LanceDB build process --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1385c9a..5b4b017 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,7 +37,7 @@ ARG TARGETARCH ARG LANCEDB_VERSION=v0.1.2 RUN apt-get update \ - && apt-get install -y --no-install-recommends bash build-essential ca-certificates curl git \ + && apt-get install -y --no-install-recommends bash binutils build-essential ca-certificates curl git \ && rm -rf /var/lib/apt/lists/* COPY go.mod go.sum ./ @@ -60,6 +60,7 @@ RUN --mount=type=cache,target=/go/pkg/mod \ *) echo "Unsupported LanceDB Docker architecture: $arch" >&2; exit 1 ;; \ esac; \ curl -sSL https://raw.githubusercontent.com/lancedb/lancedb-go/main/scripts/download-artifacts.sh | bash -s "${LANCEDB_VERSION}"; \ + ranlib "/src/lib/linux_$arch/liblancedb_go.a"; \ CGO_ENABLED=1 GOOS="${TARGETOS}" GOARCH="$arch" \ CGO_CFLAGS="-I/src/include" \ CGO_LDFLAGS="/src/lib/linux_$arch/liblancedb_go.a -lm -ldl -lpthread" \