mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
e64acdc091
## Root causes (all verified locally with docker build + run)
1. **PermissionError**: non-root `USER app` can't create
`.langgraph_api` directory — fix: `chown -R app:app /app` before `USER
app`
2. **ImportError**: relative imports (`from .tools`) fail when
`langgraph_cli` loads modules — fix: absolute imports (`from
src.agents.tools`)
3. **ValueError**: `tools.py` file collides with `tools/` directory —
fix: rename to `tool_wrappers.py`
## Verified
```
docker build -t test-lgp-starter .
docker run --rm -e OPENAI_API_KEY=test -e PORT=10003 -p 10003:10003 test-lgp-starter
# {"status":"ok","integration":"langgraph-python","agent":"ok"}
```