update
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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`).
|
||||
|
||||
Reference in New Issue
Block a user