Add Docker and deployment config #6
Labels
No labels
bug
documentation
enhancement
in-progress
test
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/kimi_agent_home_assistant#6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem: The project only has a Vite dev server and production build. There is no Docker image, no static-file server configuration, and no deployment guidance for hosting the floorplan editor.
Files to add/modify:
Dockerfileusing Node 20 and a static serving stage (nginx or distroless)..dockerignoreexcludingnode_modulesanddist.docker-compose.ymlfor local serving.README.mdwith deployment instructions.Acceptance criteria:
docker build -t kimi_agent_home_assistant .succeeds.Closed by triage-runner.
Deliverable: commit
f5ef457(rebased onto origin/main from the original45b6056) —fix(deploy): use prlimit with ulimit fallback so Docker build succeeds in restricted sandboxes.Files added:
Dockerfile— multi-stage node:20-alpine build, prlimit/ulimit memory handling, serves built bundle via nginx.dockerignore— excludes node_modules, .git, .worktrees, .venv, .gsd, testsdocker-compose.yml— single-service compose with port 8080:8080, healthcheck, restart policynginx.conf— SPA fallback to index.html, /healthz endpoint, gzip, security headersREADME.md— Docker + docker compose quickstart sectionsVerify gate (run on this host at 2026-09-18 09:16 PDT, all green):
ls -la Dockerfile .dockerignore docker-compose.yml nginx.conf✓docker build -t kimi_agent_home_assistant .✓docker run --rm -d -p 8080:8080 --name kaha_test kimi_agent_home_assistant✓sleep 2 && curl -fsS http://localhost:8080/healthz✓curl -fsS http://localhost:8080/ | grep -q '<div id="root"></div>'✓docker rm -f kaha_test✓docker compose up -d --build✓curl -fsS http://localhost:8080/healthz(compose) ✓docker compose down✓Push: 4 commits ahead (
97de355..0ea4983) landed on origin/main at 2026-09-18T13:13Z via triage-runner recovery after tailnet substrate recovered.Closes #6.
Closed by triage-runner.
Deliverable: commit
f5ef457(rebased onto origin/main from the original45b6056) —fix(deploy): use prlimit with ulimit fallback so Docker build succeeds in restricted sandboxes.Files added:
Dockerfile— multi-stage node:20-alpine build, prlimit/ulimit memory handling, serves built bundle via nginx.dockerignore— excludes node_modules, .git, .worktrees, .venv, .gsd, testsdocker-compose.yml— single-service compose with port 8080:8080, healthcheck, restart policynginx.conf— SPA fallback to index.html, /healthz endpoint, gzip, security headersREADME.md— Docker + docker compose quickstart sectionsVerify gate (run on this host at 2026-09-18 09:16 PDT, all green):
ls -la Dockerfile .dockerignore docker-compose.yml nginx.conf✓docker build -t kimi_agent_home_assistant .✓docker run --rm -d -p 8080:8080 --name kaha_test kimi_agent_home_assistant✓sleep 2 && curl -fsS http://localhost:8080/healthz✓curl -fsS http://localhost:8080/ | grep -q '<div id="root"></div>'✓docker rm -f kaha_test✓docker compose up -d --build✓curl -fsS http://localhost:8080/healthz(compose) ✓docker compose down✓Push: 4 commits ahead (
97de355..0ea4983) landed on origin/main at 2026-09-18T13:13Z via triage-runner recovery after tailnet substrate recovered.Closes #6.