This commit is contained in:
team3
2026-06-18 17:22:03 +02:00
parent 30b28290ca
commit f24054ba56
2 changed files with 7 additions and 4 deletions

View File

@@ -23,7 +23,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
RUN useradd -m -u 1000 app
COPY backend/requirements.txt /app/backend/requirements.txt
RUN pip install --no-cache-dir -r /app/backend/requirements.txt
# torch als CPU-Build (~190 MB) — eigener Index, sonst zieht pip die CUDA-Variante (~2,5 GB).
# Fürs Lesbarkeits-Gate (transformers nutzt das vorhandene torch).
RUN pip install --no-cache-dir torch --index-url https://download.pytorch.org/whl/cpu \
&& pip install --no-cache-dir -r /app/backend/requirements.txt
# Chromium + OS-Libs für Playwright (als root) in ein gemeinsames, welt-lesbares Verzeichnis.
ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright

View File

@@ -2,6 +2,6 @@ fastapi
uvicorn[standard]
aiosqlite
playwright
# Lesbarkeits-Gate (transformers + torch CPU) nur lokal — Makefile-Target `install`.
# In Produktion (make prod / Dockerfile) bewusst weggelassen: torch zieht sonst die
# CUDA-Variante (~2,5 GB, langer Build). Ohne torch deaktiviert sich das Gate still.
transformers
# torch NICHT hier listen — sonst zieht pip die CUDA-Variante (~2,5 GB).
# Es wird separat als CPU-Build installiert (Dockerfile + Makefile-Target `install`).