Fix better-sqlite3 glibc/musl mismatch on Alpine (issue #6 followup)
Deploy to Dev / Deploy & Smoke Test (push) Failing after 1m29s

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 <noreply@anthropic.com>
This commit is contained in:
2026-07-08 09:34:34 -06:00
parent eea64006fc
commit f7f9b14771
+1 -1
View File
@@ -5,7 +5,7 @@ RUN apk add --no-cache python3 make g++
WORKDIR /app WORKDIR /app
COPY package*.json ./ COPY package*.json ./
RUN npm ci --omit=dev RUN npm ci --omit=dev && npm rebuild better-sqlite3 --build-from-source
COPY . . COPY . .