perf: [30388f42] Docker-Optimierung (Lead-Engine, Heatmap, Transcription)
- Konvertiert lead-engine/Dockerfile zu Multi-Stage Build mit requirements.txt. - Aktualisiert heatmap-tool und transcription-tool auf Python 3.11-slim. - Entfernt unnötige Build-Tools (build-essential) aus den Runtime-Images. - Deaktiviert --reload Modus für Produktionsstabilität.
This commit is contained in:
@@ -1,19 +1,19 @@
|
||||
# --- STAGE 1: Builder ---
|
||||
FROM python:3.9-slim AS builder
|
||||
FROM python:3.11-slim AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Install system dependencies needed for building
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
build-essential \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Install dependencies into a local directory
|
||||
COPY requirements.txt .
|
||||
RUN pip install --user --no-cache-dir -r requirements.txt
|
||||
|
||||
# --- STAGE 2: Runtime ---
|
||||
FROM python:3.9-slim
|
||||
FROM python:3.11-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
|
||||
Reference in New Issue
Block a user