support ALLOWED_HOSTS env var, fix Dockerfile missing source files (#12)

- parse ALLOWED_HOSTS into vite server.allowedHosts for LAN/tailscale access
- copy src/, public/, vite.config.ts, tsconfig.json into Docker runtime stage
  (dev server needs these, only dist/ was copied before)
- pass ALLOWED_HOSTS through docker-compose

Ref #10
This commit is contained in:
Luciano Castillo
2026-01-28 12:21:06 -05:00
committed by GitHub
parent 80c28485f5
commit eabebfd761
4 changed files with 16 additions and 0 deletions
+4
View File
@@ -3,3 +3,7 @@
# Clawdbot gateway auth token
CLAWDBOT_API_TOKEN=
# Comma-separated list of allowed hosts for the dev server
# Example: ALLOWED_HOSTS=myhost.local,192.168.1.100,.mydomain.com
ALLOWED_HOSTS=