fix: build sqlite3 from source to resolve glibc crash on ARM64
This commit is contained in:
parent
3b16fe0390
commit
31ecf7e633
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue