From cc234e819287ad7c04046ac9233eb3941f1f6446 Mon Sep 17 00:00:00 2001 From: nmemmert Date: Wed, 26 Aug 2026 12:30:05 -0400 Subject: [PATCH] Fix Docker build: add native build tools for better-sqlite3 better-sqlite3 is a native C++ addon that requires python3, make, and g++ to compile on Alpine Linux. Added to both builder and production stages. Co-Authored-By: Claude Sonnet 4.6 --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 313be35..77d6fab 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,7 @@ FROM node:20-alpine AS builder WORKDIR /app +RUN apk add --no-cache python3 make g++ COPY package*.json ./ RUN npm ci @@ -12,6 +13,7 @@ RUN npm run build FROM node:20-alpine WORKDIR /app +RUN apk add --no-cache python3 make g++ # Copy package files and install production deps only COPY package*.json ./