fix(docker): add python3/make/g++ for better-sqlite3 native build (batch 0.6.8)
This commit is contained in:
parent
e11aefd184
commit
ca67974c5f
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue