From 4358461107e36c39c07a87ce67ccffb8e85236c2 Mon Sep 17 00:00:00 2001 From: Mistral Vibe Date: Mon, 6 Apr 2026 18:53:41 +0200 Subject: [PATCH] Fix API ModuleNotFoundError in dev compose MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit uv sync runs before the source is present in the image, so the local package install is broken. Set PYTHONPATH=/app/src so Python finds rehearsalhub directly from the mounted source volume — same approach the worker Dockerfile already uses. Co-Authored-By: Claude Sonnet 4.6 --- docker-compose.dev.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index 9a7d4b6..da5d971 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -36,6 +36,7 @@ services: SECRET_KEY: ${SECRET_KEY:-replace_me_with_32_byte_hex_default} INTERNAL_SECRET: ${INTERNAL_SECRET:-replace_me_with_32_byte_hex_default} DOMAIN: ${DOMAIN:-localhost} + PYTHONPATH: /app/src ports: - "8000:8000" networks: