From 6c16d3b87437d7ca1123b30f309a11f9be65955c Mon Sep 17 00:00:00 2001 From: SimolZimol <70102430+SimolZimol@users.noreply.github.com> Date: Thu, 15 May 2025 22:31:48 +0200 Subject: [PATCH] modified: Dockerfile --- Dockerfile | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/Dockerfile b/Dockerfile index eb550c5..5ac7456 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,17 +1,15 @@ -# --- Stage 1: Dependencies installieren --- - FROM python:3.10-slim AS base +# Basis-Image mit Python +FROM python:3.10-slim - 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 +# Arbeitsverzeichnis erstellen +WORKDIR /app + +# Kopiere die requirements-Datei und installiere die Abhängigkeiten +COPY requirements.txt . +RUN pip install --no-cache-dir -r requirements.txt + +# Kopiere den gesamten Projektinhalt in das Arbeitsverzeichnis +COPY . . ENV FLASK_ENV=$FLASK_ENV ENV SECRET_KEY=$SECRET_KEY