Simford.Dong
commited on
Commit
·
e793d5e
1
Parent(s):
cfaf006
Debug: enable verbose startup logging to diagnose timeout
Browse files- Dockerfile +3 -0
Dockerfile
CHANGED
|
@@ -19,6 +19,8 @@ EXPOSE 7860
|
|
| 19 |
|
| 20 |
# Create a startup script that generates config and starts OpenClaw
|
| 21 |
RUN echo '#!/bin/bash\n\
|
|
|
|
|
|
|
| 22 |
# Generate minimal config if not exists\n\
|
| 23 |
if [ ! -f /root/.openclaw/openclaw.json ]; then\n\
|
| 24 |
cat > /root/.openclaw/openclaw.json << EOF\n\
|
|
@@ -49,6 +51,7 @@ fi\n\
|
|
| 49 |
openclaw doctor --fix\n\
|
| 50 |
\n\
|
| 51 |
# Start OpenClaw gateway\n\
|
|
|
|
| 52 |
exec openclaw gateway run --port 7860\n\
|
| 53 |
' > /usr/local/bin/start-openclaw && chmod +x /usr/local/bin/start-openclaw
|
| 54 |
|
|
|
|
| 19 |
|
| 20 |
# Create a startup script that generates config and starts OpenClaw
|
| 21 |
RUN echo '#!/bin/bash\n\
|
| 22 |
+
set -x\n\
|
| 23 |
+
\n\
|
| 24 |
# Generate minimal config if not exists\n\
|
| 25 |
if [ ! -f /root/.openclaw/openclaw.json ]; then\n\
|
| 26 |
cat > /root/.openclaw/openclaw.json << EOF\n\
|
|
|
|
| 51 |
openclaw doctor --fix\n\
|
| 52 |
\n\
|
| 53 |
# Start OpenClaw gateway\n\
|
| 54 |
+
echo "Starting OpenClaw gateway on port 7860..."\n\
|
| 55 |
exec openclaw gateway run --port 7860\n\
|
| 56 |
' > /usr/local/bin/start-openclaw && chmod +x /usr/local/bin/start-openclaw
|
| 57 |
|