Simford.Dong commited on
Commit
bba67c4
·
1 Parent(s): 0485f7b

fix: dockerfile syntax error and CMD separation

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -7
Dockerfile CHANGED
@@ -25,7 +25,7 @@ ENV FEISHU_DM_POLICY=open
25
  EXPOSE 7860
26
 
27
  # Create a startup script that generates config and starts OpenClaw
28
- RUN echo '#!/bin/bash\n\
29
  set -x\n\
30
  \n\
31
  # Use /tmp/.openclaw as the config home\n\
@@ -41,8 +41,6 @@ if [ -z "$ANTHROPIC_AUTH_TOKEN" ]; then\n\
41
  fi\n\
42
  \n\
43
  # Always ensure we have a clean config with required values\n\
44
- # We use the openai provider as it is more flexible with custom model names\n\
45
- # and api.z.ai is typically compatible with both.\n\
46
  cat > "$OPENCLAW_HOME/openclaw.json" << EOF\n\
47
  {\n\
48
  "env": {\n\
@@ -107,7 +105,6 @@ openclaw doctor --fix\n\
107
  \n\
108
  # Start OpenClaw gateway\n\
109
  echo "Starting OpenClaw gateway on port 7860..."\n\
110
- exec openclaw gateway run --port 7860 --allow-unconfigured\n\
111
- ' > /usr/local/bin/start-openclaw && chmod +x /usr/local/bin/start-openclaw\n\
112
- \n\
113
- CMD ["/usr/local/bin/start-openclaw"]\n\
 
25
  EXPOSE 7860
26
 
27
  # Create a startup script that generates config and starts OpenClaw
28
+ RUN printf '#!/bin/bash\n\
29
  set -x\n\
30
  \n\
31
  # Use /tmp/.openclaw as the config home\n\
 
41
  fi\n\
42
  \n\
43
  # Always ensure we have a clean config with required values\n\
 
 
44
  cat > "$OPENCLAW_HOME/openclaw.json" << EOF\n\
45
  {\n\
46
  "env": {\n\
 
105
  \n\
106
  # Start OpenClaw gateway\n\
107
  echo "Starting OpenClaw gateway on port 7860..."\n\
108
+ exec openclaw gateway run --port 7860 --allow-unconfigured\n' > /usr/local/bin/start-openclaw && chmod +x /usr/local/bin/start-openclaw
109
+
110
+ CMD ["/usr/local/bin/start-openclaw"]