Skip to content

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

TypeScript

build(mcp-host): install the fonts the artifact generators draw with

marcoteb79e742b1072a
diff --git a/mcp-host/Dockerfile b/mcp-host/Dockerfile
index df6f2275e..e5f4d1c86 100644
--- a/mcp-host/Dockerfile
+++ b/mcp-host/Dockerfile
@@ -37,6 +37,11 @@ FROM node:24.16.0-alpine@sha256:21f403ab171f2dc89bad4dd69d7721bfd15f084ccb46cdd2
WORKDIR /app
+# The chart and PDF renderers carry a face for Latin, Greek and Cyrillic; these
+# fonts add the arrows, check marks, CJK, Arabic and Hebrew it lacks. Alpine
+# packages Arabic and Hebrew apart from font-noto.
+RUN apk add --no-cache font-dejavu font-noto font-noto-cjk font-noto-arabic font-noto-hebrew
+
# 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
diff --git a/mcp-host/Dockerfile.desktop b/mcp-host/Dockerfile.desktop
index 77abb297d..30cdd559f 100644
--- a/mcp-host/Dockerfile.desktop
+++ b/mcp-host/Dockerfile.desktop
@@ -38,6 +38,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
xdotool scrot xclip imagemagick \
&& rm -rf /var/lib/apt/lists/*
+# The chart and PDF renderers need the same fonts as the other variants (see
+# Dockerfile.slim). The base has the Noto packages but not DejaVu; listing all
+# three keeps them from depending on which base digest is pinned.
+RUN apt-get update && apt-get install -y --no-install-recommends \
+ fonts-dejavu-core fonts-noto-core fonts-noto-cjk \
+ && rm -rf /var/lib/apt/lists/*
+
# Chromium is pre-installed in webtop (via chromium package, not snap).
# The actual binary is at /usr/lib/chromium/chromium.
# Playwright uses it via PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH.
diff --git a/mcp-host/Dockerfile.full b/mcp-host/Dockerfile.full
index e7f10d824..8761f0709 100644
--- a/mcp-host/Dockerfile.full
+++ b/mcp-host/Dockerfile.full
@@ -40,8 +40,10 @@ WORKDIR /app
# 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
diff --git a/mcp-host/Dockerfile.slim b/mcp-host/Dockerfile.slim
index 2b5ee21a8..c7df9c2ae 100644
--- a/mcp-host/Dockerfile.slim
+++ b/mcp-host/Dockerfile.slim
@@ -43,8 +43,14 @@ WORKDIR /app
# none", curl exit 000) while mcp-host's own fetch keeps working — Node carries
# its own CA store — so the image looks healthy until an agent uses shell_exec.
# Guarded by scripts/check-dockerfile-ca-certificates.sh.
+#
+# The font packages are a runtime dependency of the artifact tools, whose own
+# face covers Latin, Greek and Cyrillic: DejaVu adds arrows and check marks,
+# Noto core adds Arabic and Hebrew, and Noto CJK adds Chinese, Japanese and
+# Korean.
RUN apt-get update && apt-get install -y --no-install-recommends \
bash ca-certificates git curl wget jq \
+ 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