kidpro2002 commited on
Commit
0e6ff78
verified
1 Parent(s): 3bb5bc9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -7
Dockerfile CHANGED
@@ -1,15 +1,13 @@
1
- # Usamos la imagen oficial
2
  FROM ghcr.io/openclaw/openclaw:latest
3
 
4
- # Variables de entorno para forzar la conexi贸n externa
5
  ENV OPENCLAW_GATEWAY_BIND=0.0.0.0
6
  ENV OPENCLAW_GATEWAY_PORT=7860
7
- ENV HOST=0.0.0.0
8
- ENV PORT=7860
9
- ENV NODE_ENV=production
10
  ENV OPENCLAW_GATEWAY_MODE=local
 
11
 
 
12
  EXPOSE 7860
13
 
14
- # Comando simplificado sin el flag --host que dio error
15
- CMD ["node", "dist/index.js", "gateway", "--allow-unconfigured"]
 
 
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"]