Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

fix(mcp-host): copy pruned node_modules from the builder

Alfredo Lopez310193babb55
diff --git a/mcp-host/Dockerfile b/mcp-host/Dockerfile
index 562221e79..df6f2275e 100644
--- a/mcp-host/Dockerfile
+++ b/mcp-host/Dockerfile
@@ -28,24 +28,23 @@ RUN npm ci
COPY mcp-host/tsconfig.json mcp-host/tsconfig.build.json ./
COPY mcp-host/src ./src
-# Build TypeScript
-RUN npm run build
+# Build TypeScript, then drop devDependencies so the runtime stage does not
+# run a second npm ci (better-sqlite3's prebuild timed out on that hop).
+RUN npm run build && npm prune --omit=dev
# Production image
FROM node:24.16.0-alpine@sha256:21f403ab171f2dc89bad4dd69d7721bfd15f084ccb46cdd225f31f2bc59b5c9a
WORKDIR /app
-# Copy the shared package + package files, install production dependencies only
+# Copy the shared package + package files + the already-pruned install
COPY packages/llm-providers ./packages/llm-providers
COPY packages/llm-provider-attempt-contract ./packages/llm-provider-attempt-contract
COPY packages/grok-provider-attempt-contract ./packages/grok-provider-attempt-contract
COPY packages/codex-catalog-projection ./packages/codex-catalog-projection
COPY mcp-host/package*.json ./mcp-host/
WORKDIR /app/mcp-host
-RUN npm ci --only=production
-
-# Copy built code
+COPY --from=builder /app/mcp-host/node_modules ./node_modules
COPY --from=builder /app/mcp-host/dist ./dist
# Run as non-root user
diff --git a/mcp-host/package-lock.json b/mcp-host/package-lock.json
index 39932e385..a7179c6be 100644
--- a/mcp-host/package-lock.json
+++ b/mcp-host/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "clerum-mcp-host",
- "version": "0.1.348",
+ "version": "0.1.349",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "clerum-mcp-host",
- "version": "0.1.348",
+ "version": "0.1.349",
"license": "SEE LICENSE IN LICENSE",
"dependencies": {
"@anthropic-ai/sdk": "^0.32.0",
diff --git a/mcp-host/package.json b/mcp-host/package.json
index a1811749e..146038fa9 100644
--- a/mcp-host/package.json
+++ b/mcp-host/package.json
@@ -1,6 +1,6 @@
{
"name": "clerum-mcp-host",
- "version": "0.1.348",
+ "version": "0.1.349",
"description": "MCP Host - reads Host CRD and provides LLM access via OpenAI/Claude",
"main": "dist/main.js",
"engines": {