diff options
| author | yyamashita <yyamashita@hetzner.yyamashita.com> | 2026-06-19 15:20:45 +0900 |
|---|---|---|
| committer | yyamashita <yyamashita@hetzner.yyamashita.com> | 2026-06-19 15:20:45 +0900 |
| commit | 7ad2b9a3f020823ee23273b2de588766a774e8b6 (patch) | |
| tree | 12dc8ea1c79550bb8d49876a59803c853dae9780 /Dockerfile | |
| parent | 30f24e137ee2d1acec11a0da61e134f512ee02dd (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>
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |
