Skip to content

修改 docker 构建,添加构建脚本和说明#2

Merged
wmwgz merged 5 commits into
wmwgz:mainfrom
sunqb:main
Aug 7, 2025
Merged

修改 docker 构建,添加构建脚本和说明#2
wmwgz merged 5 commits into
wmwgz:mainfrom
sunqb:main

Conversation

@sunqb

@sunqb sunqb commented Aug 7, 2025

Copy link
Copy Markdown

No description provided.

sunqb and others added 5 commits August 7, 2025 13:49
- 更新.dockerignore保留js/themes-vendor/target文件
- 优化Dockerfile构建流程,增加内存限制和错误处理
- 更新BUILD_GUIDE.md添加JDK21构建方案
- 修复template.ftl中script标签位置

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- 将SSO登录脚本地址从内网IP更改为域名地址
- 修改 http://10.2.128.9:8081/sso-login.js 为 //testchat.ppm.cn:62020/chat/public/sso-login.js

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- 新增 push-image.sh:自动推送本地镜像到Docker Hub的脚本
  - 支持自定义用户名和标签
  - 包含完整的错误检查和用户提示
  - 支持模拟运行模式(--dry-run)
  - 彩色输出和详细使用说明

- 更新 BUILD_GUIDE.md:
  - 明确区分Dockerfile和Dockerfile.custom的使用场景
  - 优化构建步骤说明,标注Maven构建可能报错但不影响vendor文件生成
  - 改进文档结构和可读性

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
移除冗余文件:
- 删除 Dockerfile.amd64 和 build-amd64.sh(AMD64专用文件)
- 重命名 Dockerfile.universal -> Dockerfile.multi
- 重命名 build-universal.sh -> build.sh

新增核心文件:
- Dockerfile.multi:通用多平台Dockerfile,支持ARM64和AMD64
- build.sh:智能构建脚本,自动平台检测和错误处理

更新文档:
- 更新 BUILD_GUIDE.md:突出推荐通用多平台构建方案
- 更新 push-image.sh:增强多平台支持

现在只需一个 build.sh --auto 命令即可构建服务器兼容的镜像

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
新增内容:
- 🎯 完整工作流程(从零开始):包含环境检查、JDK设置、Maven构建、Docker构建完整步骤
- 📋 日常开发流程:修改theme后的快速重建流程
- 🚀 多平台构建说明:ARM64本地测试和AMD64服务器部署
- ⚠️ 重要提醒和注意事项:必须先执行的步骤和平台选择
- 🔧 常见错误和解决方案:exec format error、vendor文件缺失等问题
- 📝 文件用途快速参考表:每个文件的作用和使用场景

现在文档包含了完整的操作指南,下次使用时可以直接按照步骤执行

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@wmwgz wmwgz merged commit ff0179e into wmwgz:main Aug 7, 2025
23 checks passed
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.

2 participants