Python src layout is not importable in the container
Summary: The app lives under src/app, but the container runs python -m app without adding /app/src to PYTHONPATH.
Failure type: python_src_layout_import
Ecosystem: python
Difficulty: easy

Repository files:
path: Dockerfile
content: FROM python:3.12-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY src ./src
CMD ["python", "-m", "app"]
path: requirements.txt
path: src/app/__main__.py
content: print("ok")

Failure log:
/usr/local/bin/python: No module named app

Build command: docker build -t sabnock/sbd-0007 .
Verify commands:
docker build -t sabnock/sbd-0007 .
docker run --rm sabnock/sbd-0007

Oracle patch:
diff --git a/Dockerfile b/Dockerfile
--- a/Dockerfile
+++ b/Dockerfile
@@ -3,4 +3,5 @@
 COPY requirements.txt .
 RUN pip install --no-cache-dir -r requirements.txt
 COPY src ./src
+ENV PYTHONPATH=/app/src
 CMD ["python", "-m", "app"]

Scoring - must touch:
Dockerfile
Scoring - must contain:
path: Dockerfile
text: ENV PYTHONPATH=/app/src
Scoring - must not contain: