feat: 添加 Docker 和 GitHub Actions 支持

- 添加 docker/Dockerfile 多阶段构建(前端+后端)
- 添加 docker-compose.yml 支持阿里云镜像部署
- 添加 .github/workflows/release.yml 自动发布到阿里云
- 添加 .dockerignore 优化构建
- 添加 VERSION 版本管理文件
- 添加 start.mjs 本地开发启动脚本
This commit is contained in:
root
2026-02-02 20:23:33 +08:00
parent eef4ec4a65
commit 22a2a97a76
6 changed files with 876 additions and 0 deletions

50
.dockerignore Normal file
View File

@@ -0,0 +1,50 @@
# Git
.git
.gitignore
# Python
__pycache__
*.py[cod]
*$py.class
*.so
.Python
.venv
venv
ENV
# IDE
.idea
.vscode
*.swp
*.swo
# Node
webui/node_modules
webui/.vite
# Build artifacts (前端构建产物在 Docker 中重新生成)
static/admin
# 配置和敏感文件
.env
.env.*
config.json
# 日志和临时文件
*.log
logs/
tmp/
temp/
# 测试
tests/
*.test.py
# 文档和截图
*.md
截图/
docs/
# Claude Code
.claude/
CLAUDE*.md