🐛 FIX: Setze PYTHONPATH=/app im Dockerfile für richtige Imports
docker-build-and-push / build (push) Successful in 15s

This commit is contained in:
KI-Sparringpartner
2026-08-03 14:39:15 +02:00
parent cd2240dd04
commit cfddef5e56
2 changed files with 12 additions and 0 deletions
+3
View File
@@ -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
+9
View File
@@ -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))