fix: build sqlite3 from source to resolve glibc crash on ARM64

This commit is contained in:
IbbyLabs 2026-03-13 23:19:08 +00:00
parent 3b16fe0390
commit 31ecf7e633

View file

@ -2,13 +2,15 @@ FROM node:24 AS builder
WORKDIR /app
COPY package*.json ./
# you might want to add --build-from-source=sqlite3 here too.
RUN npm ci
COPY tsconfig.json ./
COPY src ./src
RUN npm run build
RUN npm ci --only=production
# FIX: Force sqlite3 to compile against the container's glibc
RUN npm ci --only=production --build-from-source=sqlite3
FROM node:24
WORKDIR /app