diff --git a/Dockerfile b/Dockerfile index 523b50e31f..d8572616fb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -39,4 +39,10 @@ RUN chown -R node:node /app # This reduces the attack surface by preventing container escape via root privileges USER node -CMD ["node", "dist/index.js", "gateway", "--allow-unconfigured", "--bind", "lan"] +# Start gateway server with default config. +# Binds to loopback (127.0.0.1) by default for security. +# +# For container platforms requiring external health checks: +# 1. Set OPENCLAW_GATEWAY_TOKEN or OPENCLAW_GATEWAY_PASSWORD env var +# 2. Override CMD: ["node","dist/index.js","gateway","--allow-unconfigured","--bind","lan"] +CMD ["node", "dist/index.js", "gateway", "--allow-unconfigured"]