From 20392e824f117f4499432c641811a9668dda61fc Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Wed, 1 Apr 2026 15:38:31 -0700 Subject: [PATCH] fix: set PYTHONPATH=/app in Dockerfile for dashboard imports Streamlit adds the script directory to sys.path, not the working directory, so dashboard/ wasn't importable as a package. Co-Authored-By: Claude Opus 4.6 --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 26f0d89..34bedbf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,7 @@ RUN pip install --no-cache-dir ".[dashboard]" FROM python:3.12-slim WORKDIR /app +ENV PYTHONPATH=/app RUN useradd --create-home appuser COPY --from=builder /usr/local/lib/python3.12/site-packages /usr/local/lib/python3.12/site-packages COPY --from=builder /usr/local/bin /usr/local/bin