syw1516 commited on
Commit
5e4f74b
·
verified ·
1 Parent(s): 74ce941

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -4
Dockerfile CHANGED
@@ -1,3 +1,4 @@
 
1
  FROM docker.io/library/ubuntu:24.04
2
 
3
  ENV DEBIAN_FRONTEND=noninteractive
@@ -79,16 +80,20 @@ init_config() {\n\
79
  "allowInsecureAuth": true\n\
80
  }\n\
81
  },\n\
 
 
 
 
 
 
 
82
  "agents": {\n\
83
  "defaults": {\n\
84
- "model": { "primary": "RAW_MODEL_PLACEHOLDER" }\n\
85
  }\n\
86
  }\n\
87
  }\n\
88
  EOFCONFIG\n\
89
- # 使用 printf %%s 避免 - 被当作选项处理\n\
90
- printf "s/RAW_MODEL_PLACEHOLDER/%s/g\n" "${RAW_MODEL:-z-ai/glm4.7}" > /tmp/model.sed\n\
91
- sed -i -f /tmp/model.sed "${config_file}"\n\
92
  sed -i "s/CUSTOM_GATEWAY_TOKEN_PLACEHOLDER/${OPENCLAW_GATEWAY_TOKEN:-}/" "${config_file}"\n\
93
  log_info "配置初始化完成"\n\
94
  }\n\
 
1
+
2
  FROM docker.io/library/ubuntu:24.04
3
 
4
  ENV DEBIAN_FRONTEND=noninteractive
 
80
  "allowInsecureAuth": true\n\
81
  }\n\
82
  },\n\
83
+ "models": {\n\
84
+ "providers": {\n\
85
+ "nvidia": {\n\
86
+ "z-ai/glm4.7": {}\n\
87
+ }\n\
88
+ }\n\
89
+ },\n\
90
  "agents": {\n\
91
  "defaults": {\n\
92
+ "model": { "primary": "z-ai/glm4.7" }\n\
93
  }\n\
94
  }\n\
95
  }\n\
96
  EOFCONFIG\n\
 
 
 
97
  sed -i "s/CUSTOM_GATEWAY_TOKEN_PLACEHOLDER/${OPENCLAW_GATEWAY_TOKEN:-}/" "${config_file}"\n\
98
  log_info "配置初始化完成"\n\
99
  }\n\