Skip to content

Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.

fix(glama): use portable static binary so the check image runs on any base

Martin Vogel16103d9e3947
diff --git a/packaging/glama/Dockerfile b/packaging/glama/Dockerfile
index 52d364a72..6b579c447 100644
--- a/packaging/glama/Dockerfile
+++ b/packaging/glama/Dockerfile
@@ -1,20 +1,20 @@
# Glama MCP directory (glama.ai) check image — NOT required to run the tool.
#
-# codebase-memory-mcp ships as a single, fully-static Linux binary (gcc -static)
-# and needs NO Docker to run. This image exists only so Glama can build a
-# sandbox, launch the stdio MCP server, and run its introspection checks, which
-# power the directory's score badge. The same image is exercised locally and in
-# CI by packaging/glama/verify.sh to guard against drift.
+# codebase-memory-mcp needs NO Docker to run. This image exists only so Glama
+# can build a sandbox, launch the stdio MCP server, and run its introspection
+# checks, which power the directory's score badge. The same image is exercised
+# locally and in CI by packaging/glama/verify.sh to guard against drift.
#
-# The binary is static, so the runtime base is arbitrary. We fetch the latest
-# released binary for the build platform's architecture (TARGETARCH is amd64 /
-# arm64, matching the release asset names).
+# We pull the "-portable" release asset, which is fully statically linked
+# (gcc -static) — unlike the standard asset, which dynamically links glibc/
+# libstdc++ and would fail on an older base. Because it's static, the runtime
+# base image is arbitrary. TARGETARCH is amd64 / arm64, matching the asset names.
FROM debian:bookworm-slim AS fetch
ARG TARGETARCH
RUN apt-get update \
&& apt-get install -y --no-install-recommends curl ca-certificates \
- && curl -fsSL "https://github.com/DeusData/codebase-memory-mcp/releases/latest/download/codebase-memory-mcp-linux-${TARGETARCH}.tar.gz" \
+ && curl -fsSL "https://github.com/DeusData/codebase-memory-mcp/releases/latest/download/codebase-memory-mcp-linux-${TARGETARCH}-portable.tar.gz" \
| tar -xz -C /tmp codebase-memory-mcp \
&& chmod +x /tmp/codebase-memory-mcp \
&& rm -rf /var/lib/apt/lists/*