From cfddef5e56f4012db3339f2624d79954047fb376 Mon Sep 17 00:00:00 2001 From: KI-Sparringpartner Date: Mon, 3 Aug 2026 14:39:06 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20FIX:=20Setze=20PYTHONPATH=3D/app?= =?UTF-8?q?=20im=20Dockerfile=20f=C3=BCr=20richtige=20Imports?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 3 +++ debug_structure.py | 9 +++++++++ 2 files changed, 12 insertions(+) create mode 100644 debug_structure.py diff --git a/Dockerfile b/Dockerfile index b06c458..dea5121 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,6 +10,9 @@ RUN pip install --no-cache-dir -r requirements.txt # Applikation kopieren COPY app/ ./app +# Setze PYTHONPATH damit Imports funktionieren +ENV PYTHONPATH=/app + # Exponierter Port EXPOSE 8000 diff --git a/debug_structure.py b/debug_structure.py new file mode 100644 index 0000000..8700903 --- /dev/null +++ b/debug_structure.py @@ -0,0 +1,9 @@ +import os +from pathlib import Path + +# Pruefe im Dockerfile: +print("=== DEBUG ===") +print(f"CWD: {os.getcwd()}") +for root, dirs, files in os.walk("/app"): + for file in files: + print(os.path.join(root, file)) \ No newline at end of file