From 559a47c09237b85e346778ee88d675f8c1e53fa9 Mon Sep 17 00:00:00 2001 From: nmemmert <67961292+nmemmert@users.noreply.github.com> Date: Wed, 26 Aug 2026 15:02:32 -0400 Subject: [PATCH] Use build-base + linux-headers for better-sqlite3 on Alpine g++ alone is missing musl-dev and binutils; build-base is Alpine's equivalent of build-essential and covers the full GCC toolchain needed by node-gyp. Co-Authored-By: Claude Sonnet 4.6 --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 57f3f3d..66f6836 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,9 +28,9 @@ RUN apk add --no-cache dumb-init COPY package*.json ./ # Install build tools for native modules (better-sqlite3), then install deps -RUN apk add --no-cache python3 make g++ && \ +RUN apk add --no-cache python3 build-base linux-headers && \ npm ci --omit=dev && \ - apk del python3 make g++ + apk del python3 build-base linux-headers # Copy server code COPY server ./server