phase 2-3
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
FROM node:20-alpine AS builder
|
||||
# Build deps for native modules (better-sqlite3 needs python3/make/g++ on musl)
|
||||
RUN apk add --no-cache python3 make g++
|
||||
WORKDIR /app
|
||||
COPY package*.json tsconfig.json ./
|
||||
RUN npm ci
|
||||
@@ -8,6 +10,8 @@ RUN npx prisma generate
|
||||
RUN npm run build
|
||||
|
||||
FROM node:20-alpine
|
||||
# Runtime libs for native modules
|
||||
RUN apk add --no-cache libstdc++
|
||||
RUN addgroup -S mcp && adduser -S mcp -G mcp
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/dist ./dist
|
||||
|
||||
Reference in New Issue
Block a user