kidpro2002 commited on
Commit
0efe61a
·
verified ·
1 Parent(s): 6b0195c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -5
Dockerfile CHANGED
@@ -1,13 +1,15 @@
1
- # Usamos la imagen oficial de OpenClaw
2
  FROM ghcr.io/openclaw/openclaw:latest
3
 
4
- # Configuramos las variables para que OpenClaw use el puerto de Hugging Face
5
  ENV OPENCLAW_GATEWAY_PORT=7860
6
  ENV OPENCLAW_GATEWAY_BIND=0.0.0.0
7
  ENV NODE_ENV=production
8
 
9
- # Exponemos el puerto 7860
 
 
10
  EXPOSE 7860
11
 
12
- # Comando para iniciar la gateway directamente
13
- CMD ["node", "dist/index.js", "gateway"]
 
1
+ # Usamos la imagen oficial
2
  FROM ghcr.io/openclaw/openclaw:latest
3
 
4
+ # Variables básicas para Hugging Face
5
  ENV OPENCLAW_GATEWAY_PORT=7860
6
  ENV OPENCLAW_GATEWAY_BIND=0.0.0.0
7
  ENV NODE_ENV=production
8
 
9
+ # Forzamos el modo local para que no busque configuraciones externas inexistentes
10
+ ENV OPENCLAW_GATEWAY_MODE=local
11
+
12
  EXPOSE 7860
13
 
14
+ # El cambio clave está aquí: añadimos el flag para que no pida el setup inicial
15
+ CMD ["node", "dist/index.js", "gateway", "--allow-unconfigured"]