summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryyamashita <yyamashita@hetzner.yyamashita.com>2026-06-19 15:20:45 +0900
committeryyamashita <yyamashita@hetzner.yyamashita.com>2026-06-19 15:20:45 +0900
commit7ad2b9a3f020823ee23273b2de588766a774e8b6 (patch)
tree12dc8ea1c79550bb8d49876a59803c853dae9780
parent30f24e137ee2d1acec11a0da61e134f512ee02dd (diff)
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 <noreply@anthropic.com>
-rw-r--r--Dockerfile2
1 files changed, 2 insertions, 0 deletions
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