🐛 FIX: Setze PYTHONPATH=/app im Dockerfile für richtige Imports
docker-build-and-push / build (push) Successful in 15s
docker-build-and-push / build (push) Successful in 15s
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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))
|
||||
Reference in New Issue
Block a user