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