From 7ad2b9a3f020823ee23273b2de588766a774e8b6 Mon Sep 17 00:00:00 2001 From: yyamashita Date: Fri, 19 Jun 2026 15:20:45 +0900 Subject: Fix Dockerfile: add build tools for better-sqlite3 on Alpine better-sqlite3 requires python3, make, g++ to compile native addon on musl. Co-Authored-By: Claude Sonnet 4.6 --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index a8e0833..736dece 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,7 @@ FROM node:20-alpine AS deps WORKDIR /app +RUN apk add --no-cache python3 make g++ COPY package.json package-lock.json ./ RUN --mount=type=cache,target=/root/.npm \ npm ci @@ -14,6 +15,7 @@ RUN npm run build FROM node:20-alpine AS prod-deps WORKDIR /app +RUN apk add --no-cache python3 make g++ COPY package.json package-lock.json ./ RUN --mount=type=cache,target=/root/.npm \ npm ci --omit=dev -- cgit v1.2.3