Skip to content

修复 Docker 部署构建失败及运行问题,实现开箱即用#423

Open
wang1092791404 wants to merge 1 commit into
jd-opensource:data_agentfrom
wang1092791404:fix/docker-deployment
Open

修复 Docker 部署构建失败及运行问题,实现开箱即用#423
wang1092791404 wants to merge 1 commit into
jd-opensource:data_agentfrom
wang1092791404:fix/docker-deployment

Conversation

@wang1092791404

Copy link
Copy Markdown
  • 基础镜像固定为 bookworm:python:3.11-slim 现已指向 Debian 13 (trixie),与 Dockerfile 中配置的 bookworm apt 源冲突,导致 apt 因 libssl 依赖冲突安装失败(exit code 100)
  • 构建时统一将 shell 脚本与 .env 的 CRLF 换行符转换为 LF,解决 Windows 检出代码后容器内执行报 bad interpreter 的问题
  • 运行镜像中 pnpm 固定为 v9:Debian bookworm 仓库的 Node.js 为 v18,而最新 pnpm 要求 Node 22+,导致前端预览服务(3000 端口) 启动即退出
  • 部署构建中 tsc 类型检查仅提示不阻断打包(实际打包由 vite/esbuild 完成),开发/CI 阶段仍可用 pnpm build 严格检查
  • 移除 genie-tool/.env_template 中残留的合并冲突标记(=======)
  • 新增 docker-compose.yml(一键部署编排)与 .dockerignore(精简 构建上下文)

- 基础镜像固定为 bookworm:python:3.11-slim 现已指向 Debian 13
  (trixie),与 Dockerfile 中配置的 bookworm apt 源冲突,导致 apt 因
  libssl 依赖冲突安装失败(exit code 100)
- 构建时统一将 shell 脚本与 .env 的 CRLF 换行符转换为 LF,解决
  Windows 检出代码后容器内执行报 bad interpreter 的问题
- 运行镜像中 pnpm 固定为 v9:Debian bookworm 仓库的 Node.js 为
  v18,而最新 pnpm 要求 Node 22+,导致前端预览服务(3000 端口)
  启动即退出
- 部署构建中 tsc 类型检查仅提示不阻断打包(实际打包由 vite/esbuild
  完成),开发/CI 阶段仍可用 pnpm build 严格检查
- 移除 genie-tool/.env_template 中残留的合并冲突标记(=======)
- 新增 docker-compose.yml(一键部署编排)与 .dockerignore(精简
  构建上下文)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant