fix(build): 修复 Docker 前端构建阶段版本信息读取问题
- 在 Dockerfile 中补充拷贝 CHANGELOG.md 文件到构建环境 - 避免前端构建时因缺少版本文件导致的信息读取失败 - 更新文档测试用例,确保构建
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user