From 1a05ee941e7df648cd8349237cde824341a1bbdb Mon Sep 17 00:00:00 2001 From: Rishi Vhavle <134706404+kaizen403@users.noreply.github.com> Date: Mon, 2 Feb 2026 03:38:08 +0530 Subject: [PATCH] fix(docker): add gateway subcommand and cloud-compatible flags The Dockerfile CMD runs without arguments, causing the CLI to print help and exit with code 1. This breaks deployment on container platforms (Render, Railway, Fly.io, etc.) that rely on the CMD. Changes: - Add `gateway` subcommand to start the server - Add `--allow-unconfigured` to allow startup without config file - Add `--bind lan` to bind to 0.0.0.0 instead of localhost (required for container health checks) Fixes #5685 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index f55c030aec..523b50e31f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -39,4 +39,4 @@ 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"] +CMD ["node", "dist/index.js", "gateway", "--allow-unconfigured", "--bind", "lan"]