Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
# MCP Host Dockerfile — Full variant
# Base: node:24.22.1 (Debian bookworm, glibc + apt + python3/gcc/make/curl/perl, ~400-500MB)
# Use case: full dev workstation for agent shell execution
#
# BUILD CONTEXT = repo root (see Dockerfile). COPY packages/ alongside mcp-host/.
#
# Pinned to Node 24.22.1 by digest for the October 2026 security release.
# HTTP compatibility and native bindings are exercised by the package suite and final-image CI probes.
FROM node:24.22.1-alpine@sha256:06d7adf3e0ef61a13f1d28682726366f97a15aa1888c934d3ecec86c33918b53 AS builder
WORKDIR /app
# Shared prebuilt data-only package (no build step — ships index.cjs + .d.ts).
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 packages/gfs-interaction-policy ./packages/gfs-interaction-policy
# Install dependencies (file: deps resolve to ../packages/llm-providers and
# ../packages/llm-provider-attempt-contract)
COPY mcp-host/package*.json ./mcp-host/
WORKDIR /app/mcp-host
RUN npm ci
# Copy source code
COPY mcp-host/tsconfig.json mcp-host/tsconfig.build.json ./
COPY mcp-host/src ./src
# Build TypeScript
RUN npm run build
# Production image — full Debian (git, python3, gcc, make, curl, perl included)
FROM node:24.22.1@sha256:6449e19d8184d84062525b6a7524def03146c2cb04a7f08b076680d0e8e4240a
WORKDIR /app
# Fill gaps in full Debian base.
#
# This base already ships ca-certificates, unlike node:*-slim. Listing it is a
# no-op layer that makes the CA bundle a stated dependency of the tools we ship
# instead of a property of whichever base digest is pinned.
# Guarded by scripts/check-dockerfile-ca-certificates.sh.
# The font packages back the chart and PDF renderers (see Dockerfile.slim).
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates jq wget \
fonts-dejavu-core fonts-noto-core fonts-noto-cjk \
&& rm -rf /var/lib/apt/lists/*
# Copy the shared package + package files, install production dependencies only
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 packages/gfs-interaction-policy ./packages/gfs-interaction-policy
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/dist ./dist
# Run as non-root user
RUN groupadd -g 1001 nodejs && useradd -u 1001 -g nodejs -m nodejs
# Create writable workspace for native tools (file_read, file_write, shell_exec)
RUN mkdir -p /workspace && chown nodejs:nodejs /workspace
USER nodejs
CMD ["node", "dist/main.js"]