fix: correct Docker setup, SDK async API, and docs

- Dockerfile: use explicit uvicorn command (uv run start fails without package mode)
- docker-compose: mount claude-auth volume to /root/.claude (worker runs as root)
- worker: update to Claude Code SDK async iterable API (query() returns iterator, not array)
- main.py: fix docs_url from /doc to /docs
- README: correct login instructions (exec not run --rm), add production URLs
- Add CLAUDE.md with full project documentation

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Adriano Dal Pastro
2026-05-25 20:35:44 +00:00
parent 6c53dd33bc
commit 5d78d865a4
6 changed files with 150 additions and 29 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ async def lifespan(app: FastAPI):
app = FastAPI(
title="OpusAgent",
version="0.1.0",
docs_url="/doc",
docs_url="/docs",
redoc_url="/redoc",
openapi_url="/openapi.json",
lifespan=lifespan,