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.
This commit is contained in:
Ryan Malloy 2026-02-23 19:45:08 -07:00
parent 5649d0004a
commit c0826e1a36

View File

@ -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/