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
# Kopiere die requirements-Datei und installiere die Abhängigkeiten
# --- Stage 2: Code kopieren & starten --- COPY requirements.txt .
FROM base AS run RUN pip install --no-cache-dir -r requirements.txt
WORKDIR /app
COPY . /app # Kopiere den gesamten Projektinhalt in das Arbeitsverzeichnis
COPY . .
# Port, den Coolify erwartet
EXPOSE 5000
ENV FLASK_ENV=$FLASK_ENV ENV FLASK_ENV=$FLASK_ENV
ENV SECRET_KEY=$SECRET_KEY ENV SECRET_KEY=$SECRET_KEY