From 10726a72e1d81877b3129d2e595110b606d9698f Mon Sep 17 00:00:00 2001 From: Denis Andreyev Date: Mon, 9 Nov 2026 13:15:34 +0500 Subject: [PATCH] Install build tools in the Docker image so better-sqlite3 can compile --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6d0f7d0..143fb16 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,7 @@ # Single-image deploy: builds web + API, serves both on :8787. State lives in /app/data (mount a volume). FROM node:22-slim -RUN corepack enable +# Build tools: better-sqlite3 compiles from source when its prebuilt binary download fails. +RUN apt-get update && apt-get install -y --no-install-recommends python3 make g++ && rm -rf /var/lib/apt/lists/* && corepack enable WORKDIR /app COPY . . RUN pnpm install --frozen-lockfile && pnpm build