Fix: Add build dependencies for better-sqlite3 in Dockerfile

This commit is contained in:
Quintine committed 2026-05-20 13:57:48 +10:00
1 parent 68771a24ef
commit ed3f67a057
1 file changed
+2
+2
View File
@@ -9,6 +9,8 @@ RUN npm run build
# --- Build Backend ---
FROM node:20-alpine AS backend-builder
WORKDIR /app/backend
# Install build dependencies for native modules (better-sqlite3)
RUN apk add --no-cache python3 make g++
COPY backend/package*.json ./
RUN npm install
COPY backend/ ./