joeshen commited on
Commit
86309b7
·
verified ·
1 Parent(s): 8aa0969

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -6
Dockerfile CHANGED
@@ -44,7 +44,7 @@ RUN mkdir -p /root/.openclaw
44
 
45
  # Environment variables
46
  ENV TZ=Asia/Shanghai
47
- ENV PORT=18789
48
  ENV OPENCLAW_GATEWAY_MODE=local
49
  #ENV OPENCLAW_GATEWAY_PASSWORD=${OPENCLAW_GATEWAY_PASSWORD}
50
 
@@ -94,7 +94,7 @@ cat << INNEREOF > /root/.openclaw/openclaw.json
94
  "gateway": {
95
  "mode": "${OPENCLAW_GATEWAY_MODE}",
96
  "bind": "lan",
97
- "port": ${PORT},
98
  "trustedProxies": ["0.0.0.0/0"],
99
  "auth": {
100
  "mode": "token",
@@ -199,17 +199,17 @@ openclaw doctor --fix || true
199
  # 自动批准
200
  #openclaw devices approve --all || true
201
 
202
- echo "Starting OpenClaw gateway on port ${PORT}..."
203
 
204
  #openclaw approvals allowlist add *
205
 
206
  #openclaw doctor --fix
207
 
208
- #exec openclaw start --port ${PORT}
209
  #exec openclaw agent run --name main
210
- #exec openclaw gateway run --port ${PORT}
211
  #clawport dev --port 3000 &
212
- #openclaw gateway run --port ${PORT} &
213
  #openclaw devices list &
214
  #sleep 30 # 确保 gateway 已启动
215
  #openclaw devices approve --all || true
 
44
 
45
  # Environment variables
46
  ENV TZ=Asia/Shanghai
47
+ ENV OPENCLAW_PORT=18789
48
  ENV OPENCLAW_GATEWAY_MODE=local
49
  #ENV OPENCLAW_GATEWAY_PASSWORD=${OPENCLAW_GATEWAY_PASSWORD}
50
 
 
94
  "gateway": {
95
  "mode": "${OPENCLAW_GATEWAY_MODE}",
96
  "bind": "lan",
97
+ "port": ${OPENCLAW_PORT},
98
  "trustedProxies": ["0.0.0.0/0"],
99
  "auth": {
100
  "mode": "token",
 
199
  # 自动批准
200
  #openclaw devices approve --all || true
201
 
202
+ echo "Starting OpenClaw gateway on port ${OPENCLAW_PORT}..."
203
 
204
  #openclaw approvals allowlist add *
205
 
206
  #openclaw doctor --fix
207
 
208
+ #exec openclaw start --port ${OPENCLAW_PORT}
209
  #exec openclaw agent run --name main
210
+ #exec openclaw gateway run --port ${OPENCLAW_PORT}
211
  #clawport dev --port 3000 &
212
+ #openclaw gateway run --port ${OPENCLAW_PORT} &
213
  #openclaw devices list &
214
  #sleep 30 # 确保 gateway 已启动
215
  #openclaw devices approve --all || true