# --- Stage 1: Dependencies installieren --- FROM python:3.10-slim AS base WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # --- Stage 2: Code kopieren & starten --- FROM base AS run WORKDIR /app COPY . /app # Port, den Coolify erwartet EXPOSE 5000 # Starten mit Gunicorn für Production CMD ["gunicorn", "--bind", "0.0.0.0:5000", "app:app"]