修复 Docker 部署构建失败及运行问题,实现开箱即用#423
Open
wang1092791404 wants to merge 1 commit into
Open
Conversation
wang1092791404
commented
Jun 5, 2026
- 基础镜像固定为 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(精简 构建上下文)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.