Fix: Add build dependencies for better-sqlite3 in Dockerfile
This commit is contained in:
1 parent
68771a24ef
commit
ed3f67a057
1 file changed
+2
@@ -9,6 +9,8 @@ RUN npm run build
|
|||||||
# --- Build Backend ---
|
# --- Build Backend ---
|
||||||
FROM node:20-alpine AS backend-builder
|
FROM node:20-alpine AS backend-builder
|
||||||
WORKDIR /app/backend
|
WORKDIR /app/backend
|
||||||
|
# Install build dependencies for native modules (better-sqlite3)
|
||||||
|
RUN apk add --no-cache python3 make g++
|
||||||
COPY backend/package*.json ./
|
COPY backend/package*.json ./
|
||||||
RUN npm install
|
RUN npm install
|
||||||
COPY backend/ ./
|
COPY backend/ ./
|
||||||
|
|||||||
Reference in new issue
Block a user