chore(docker): add development environment with hot reload

Add dev stage to Dockerfile and startup script
Create docker-compose.dev.yml for local development
Update README with Docker dev mode instructions
This commit is contained in:
2026-04-12 21:54:58 +08:00
parent 8541c4a2d1
commit 7f582b530c
4 changed files with 69 additions and 0 deletions

7
.docker/dev-start.sh Normal file
View File

@@ -0,0 +1,7 @@
#!/bin/sh
set -eu
pnpm install --frozen-lockfile
exec pnpm dev --host "${HOST:-0.0.0.0}" --port "${PORT:-20013}"