From c0826e1a3647f881e470240071b06cf7dfe09868 Mon Sep 17 00:00:00 2001 From: Ryan Malloy Date: Mon, 23 Feb 2026 19:45:08 -0700 Subject: [PATCH] Set MPLCONFIGDIR for matplotlib in nobody container The nobody user has no writable home directory, so matplotlib falls back to creating a temporary cache dir on every import. Setting MPLCONFIGDIR to /tmp/matplotlib gives it a stable writable path. --- Dockerfile.mcp | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile.mcp b/Dockerfile.mcp index 43f5dfb..5ca7746 100644 --- a/Dockerfile.mcp +++ b/Dockerfile.mcp @@ -14,6 +14,7 @@ WORKDIR /app ENV UV_COMPILE_BYTECODE=1 ENV PATH="/app/.venv/bin:$PATH" +ENV MPLCONFIGDIR=/tmp/matplotlib COPY --from=deps /app/.venv /app/.venv COPY src/ src/