Spaces:
Sleeping
Sleeping
Claude Code Claude Opus 4.6 commited on
Commit ·
43b442f
1
Parent(s): 04fd480
Claude Code: Fix Docker build - use entrypoint.sh for critical initialization
Browse filesThe Dockerfile was running uvicorn directly instead of using entrypoint.sh,
which contains critical initialization code including:
- Cleaning stale 'unknown' errors from cain_status.json
- Setting up OPENCLAW_DATA_DIR environment variable
- Creating required directories
- Debug logging for startup issues
This fix ensures the entrypoint script runs before uvicorn starts.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Dockerfile +5 -2
- openclaw/.openclaw/agents/cain_status.json +1 -1
Dockerfile
CHANGED
|
@@ -19,5 +19,8 @@ EXPOSE 7860
|
|
| 19 |
# Set PYTHONPATH to /app
|
| 20 |
ENV PYTHONPATH=/app
|
| 21 |
|
| 22 |
-
#
|
| 23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
# Set PYTHONPATH to /app
|
| 20 |
ENV PYTHONPATH=/app
|
| 21 |
|
| 22 |
+
# Make entrypoint executable
|
| 23 |
+
RUN chmod +x entrypoint.sh
|
| 24 |
+
|
| 25 |
+
# Run entrypoint script which then starts uvicorn
|
| 26 |
+
ENTRYPOINT ["./entrypoint.sh"]
|
openclaw/.openclaw/agents/cain_status.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"current_state": "idle",
|
| 3 |
-
"last_updated": "2026-03-16T21:
|
| 4 |
"agent": "cain",
|
| 5 |
"error": null,
|
| 6 |
"health": "HEALTHY",
|
|
|
|
| 1 |
{
|
| 2 |
"current_state": "idle",
|
| 3 |
+
"last_updated": "2026-03-16T21:55:27.878621+00:00",
|
| 4 |
"agent": "cain",
|
| 5 |
"error": null,
|
| 6 |
"health": "HEALTHY",
|