fix(docker): add python3/make/g++ for better-sqlite3 native build (batch 0.6.8)

This commit is contained in:
null 2026-05-17 15:48:43 -05:00
parent e11aefd184
commit ca67974c5f
1 changed files with 5 additions and 1 deletions

View File

@ -6,6 +6,9 @@ WORKDIR /app
# Copy package files first for layer caching
COPY package.json package-lock.json* ./
# Install build tools for native modules (better-sqlite3)
RUN apk add --no-cache python3 make g++
# Install all dependencies for build
RUN npm ci
@ -48,7 +51,8 @@ COPY --from=builder /app/package.json /app/package-lock.json* ./
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/server ./server
# Install production dependencies only in runtime stage
# Install build tools for native modules + production dependencies
RUN apk add --no-cache python3 make g++
RUN npm ci --omit=dev
# Expose backend port