Improve Docker startup npm install speed and observability.

Use configurable npm mirror with npm ci --no-audit --no-fund and add startup logs plus README docs for NPM_REGISTRY.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
renjue
2026-05-09 17:00:56 +08:00
parent ddbd79b951
commit 78a4932526
2 changed files with 6 additions and 1 deletions

View File

@@ -94,4 +94,5 @@ docker run --rm -it \
- `GIT_REPO_URL`:容器启动时拉取代码的仓库地址
- `GIT_BRANCH`:拉取分支(默认 `main`
- `WORKTREE_DIR`:容器内代码目录(默认 `/app/runtime`
- `NPM_REGISTRY`:前端依赖安装镜像源(默认 `https://registry.npmmirror.com`