modified: Dockerfile

This commit is contained in:
SimolZimol
2025-05-15 22:31:48 +02:00
parent e8df0c941b
commit 6c16d3b874

View File

@@ -1,17 +1,15 @@
# --- Stage 1: Dependencies installieren --- # Basis-Image mit Python
FROM python:3.10-slim AS base FROM python:3.10-slim
WORKDIR /app # Arbeitsverzeichnis erstellen
COPY requirements.txt . WORKDIR /app
RUN pip install --no-cache-dir -r requirements.txt
# --- Stage 2: Code kopieren & starten --- # Kopiere die requirements-Datei und installiere die Abhängigkeiten
FROM base AS run COPY requirements.txt .
WORKDIR /app RUN pip install --no-cache-dir -r requirements.txt
COPY . /app
# Port, den Coolify erwartet # Kopiere den gesamten Projektinhalt in das Arbeitsverzeichnis
EXPOSE 5000 COPY . .
ENV FLASK_ENV=$FLASK_ENV ENV FLASK_ENV=$FLASK_ENV
ENV SECRET_KEY=$SECRET_KEY ENV SECRET_KEY=$SECRET_KEY