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