mirror of
https://github.com/setube/ogame-vue-ts.git
synced 2026-05-12 07:55:11 +08:00
feat(docker): 添加完整的 Docker 构建支持
- 重构 Dockerfile 支持本地完整源码构建流程 - 添加 CI 专用的 Dockerfile.ci 使用预构建产物 - 创建 .dockerignore 和 .dockerignore.ci 文件优化构建上下文 - 添加 build-docker.sh 和 build-docker.bat 本地构建脚本 - 更新 GitHub Actions 工作流支持 Node.js 环境和 pnpm 依赖管理 - 添加 DOCKER.md 详细说明文档 - 优化 nginx 配置和端口暴露设置
This commit is contained in:
38
.dockerignore.ci
Normal file
38
.dockerignore.ci
Normal file
@@ -0,0 +1,38 @@
|
||||
# CI 构建专用的 dockerignore
|
||||
# 只保留构建产物和必要的配置文件
|
||||
|
||||
# 排除所有源代码和开发文件
|
||||
src/
|
||||
public/
|
||||
electron/
|
||||
node_modules/
|
||||
.vscode/
|
||||
.idea/
|
||||
.git/
|
||||
.github/
|
||||
|
||||
# 排除构建工具配置
|
||||
vite.config.ts
|
||||
tsconfig*.json
|
||||
*.config.js
|
||||
*.config.ts
|
||||
package.json
|
||||
package-lock.json
|
||||
pnpm-lock.yaml
|
||||
|
||||
# 排除其他构建产物
|
||||
pkg/
|
||||
android/
|
||||
resources/
|
||||
|
||||
# 排除临时文件
|
||||
*.tmp
|
||||
*.temp
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
*.log
|
||||
|
||||
# 只保留以下文件:
|
||||
# - docs/ (构建产物)
|
||||
# - nginx.conf (nginx配置)
|
||||
# - Dockerfile.ci
|
||||
Reference in New Issue
Block a user