kidpro2002 commited on
Commit
c5ef746
1 Parent(s): 0e6ff78

Fix: Use GATEWAY_BIND_MODE=lan and add app_port to README

Browse files
Files changed (2) hide show
  1. Dockerfile +10 -5
  2. README.md +2 -3
Dockerfile CHANGED
@@ -1,13 +1,18 @@
 
1
  FROM ghcr.io/openclaw/openclaw:latest
2
 
3
- # Seteamos las variables de entorno de forma global
4
- ENV OPENCLAW_GATEWAY_BIND=0.0.0.0
 
5
  ENV OPENCLAW_GATEWAY_PORT=7860
6
  ENV OPENCLAW_GATEWAY_MODE=local
7
  ENV NODE_ENV=production
8
 
9
- # Exponemos el puerto de Hugging Face
 
 
 
10
  EXPOSE 7860
11
 
12
- # Usamos un shell script interno para forzar la configuraci贸n de Kimi y el Bind
13
- CMD ["sh", "-c", "OPENCLAW_GATEWAY_BIND=0.0.0.0 OPENCLAW_GATEWAY_PORT=7860 node dist/index.js gateway --allow-unconfigured"]
 
1
+ # Imagen oficial de OpenClaw
2
  FROM ghcr.io/openclaw/openclaw:latest
3
 
4
+ # === CONFIGURACI脫N CLAVE PARA HUGGING FACE ===
5
+ # GATEWAY_BIND_MODE=lan fuerza el binding a 0.0.0.0 (documentaci贸n oficial OpenClaw)
6
+ ENV GATEWAY_BIND_MODE=lan
7
  ENV OPENCLAW_GATEWAY_PORT=7860
8
  ENV OPENCLAW_GATEWAY_MODE=local
9
  ENV NODE_ENV=production
10
 
11
+ # Variables para Kimi 2.5 v铆a OpenAI-compatible API
12
+ # Se configuran como Secrets en HF para seguridad
13
+ # OPENAI_API_KEY, OPENAI_API_BASE, OPENCLAW_GATEWAY_MODEL
14
+
15
  EXPOSE 7860
16
 
17
+ # Lanzamos el gateway con --allow-unconfigured
18
+ CMD ["node", "dist/index.js", "gateway", "--allow-unconfigured"]
README.md CHANGED
@@ -1,10 +1,9 @@
1
  ---
2
  title: OpenCLaw
3
- emoji: 馃殌
4
  colorFrom: pink
5
  colorTo: indigo
6
  sdk: docker
 
7
  pinned: false
8
  ---
9
-
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
  title: OpenCLaw
3
+ emoji: 馃
4
  colorFrom: pink
5
  colorTo: indigo
6
  sdk: docker
7
+ app_port: 7860
8
  pinned: false
9
  ---