fix(build): 修复 Docker 前端构建阶段版本信息读取问题

- 在 Dockerfile 中补充拷贝 CHANGELOG.md 文件到构建环境
- 避免前端构建时因缺少版本文件导致的信息读取失败
- 更新文档测试用例,确保构建
This commit is contained in:
HouYunFei
2026-05-20 16:28:54 +08:00
parent 8fd4262bb6
commit 7fb53b251c
3 changed files with 4 additions and 0 deletions
+1
View File
@@ -5,6 +5,7 @@ WORKDIR /app/web
COPY web/package.json web/bun.lock ./
RUN --mount=type=cache,target=/root/.bun/install/cache bun install --frozen-lockfile --registry=https://registry.npmmirror.com --cache-dir=/root/.bun/install/cache
COPY VERSION /app/VERSION
COPY CHANGELOG.md /app/CHANGELOG.md
COPY web ./
RUN bun run build