build(ocr): set ENV TMPDIR=/app/cache/.tmp so docker run uses SSD staging

Without this, running the image outside compose loses the TMPDIR redirect
and Surya model downloads fall back to the 512 MB /tmp tmpfs (ENOSPC).
See issue #614, ADR-021.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-05-18 10:53:15 +02:00
parent 9b21d6aee8
commit 09a043431e

View File

@@ -32,6 +32,7 @@ ENV HOME=/home/ocr
ENV HF_HOME=/app/cache
ENV XDG_CACHE_HOME=/app/cache
ENV TORCH_HOME=/app/models/torch
ENV TMPDIR=/app/cache/.tmp
USER ocr