Claude Code Claude Opus 4.6 commited on
Commit
e60cd0a
·
1 Parent(s): 6920374

Claude Code: Fix Docker path resolution - support nested openclaw structure

Browse files

The Dockerfile was copying .openclaw to /app/.openclaw (flat) but the
code expects it at /app/openclaw/.openclaw (nested). This caused import
errors when trying to use brain modules.

Fixed by copying the entire openclaw/ directory to preserve nesting.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Files changed (1) hide show
  1. Dockerfile +4 -5
Dockerfile CHANGED
@@ -19,11 +19,10 @@ COPY app.py error_handlers.py entrypoint.sh openclaw.json /app/
19
  COPY static/ /app/static/
20
  COPY frontend/ /app/frontend/
21
 
22
- # CRITICAL: Copy both openclaw/__init__.py AND .openclaw for brain imports
23
- # 1. openclaw/__init__.py is needed for "import openclaw" to work
24
- # 2. .openclaw/ is needed for "from agents import brain_minimal" to work
25
- COPY openclaw/__init__.py /app/openclaw/__init__.py
26
- COPY openclaw/.openclaw/ /app/.openclaw/
27
 
28
  # Create necessary directories with proper permissions
29
  RUN mkdir -p /app/logs && \
 
19
  COPY static/ /app/static/
20
  COPY frontend/ /app/frontend/
21
 
22
+ # CRITICAL: Copy openclaw/ directory with nested structure
23
+ # openclaw/__init__.py is needed for "import openclaw" to work
24
+ # openclaw/.openclaw/ is needed for "from agents import brain_minimal" to work
25
+ COPY openclaw/ /app/openclaw/
 
26
 
27
  # Create necessary directories with proper permissions
28
  RUN mkdir -p /app/logs && \