From f7f9b14771835450353a6c7b7b5c707e620c91c7 Mon Sep 17 00:00:00 2001 From: jhodgkin Date: Wed, 8 Jul 2026 09:34:34 -0600 Subject: [PATCH] Fix better-sqlite3 glibc/musl mismatch on Alpine (issue #6 followup) prebuild-install downloads a prebuilt glibc .node binary for linux-x64 which fails on Alpine (musl) with 'fcntl64: symbol not found'. Adding an explicit npm rebuild --build-from-source step forces compilation against musl libc inside the container, which is correct. Co-Authored-By: Claude Sonnet 4.6 --- api/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/Dockerfile b/api/Dockerfile index 302f506..5484373 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -5,7 +5,7 @@ RUN apk add --no-cache python3 make g++ WORKDIR /app COPY package*.json ./ -RUN npm ci --omit=dev +RUN npm ci --omit=dev && npm rebuild better-sqlite3 --build-from-source COPY . .