feat: 添加 Docker Hub 自动构建和改进部署体验

- 支持环境变量预设管理员账号密码
- 添加 docker-entrypoint.sh 自动初始化脚本
- 配置 GitHub Actions 自动构建多平台镜像(amd64, arm64)
- 添加版本标签管理和自动发布流程
- 集成 Trivy 安全漏洞扫描
- 更新文档说明 Docker Hub 使用方法
- 优化 Docker 部署用户体验

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
shaw
2025-07-19 00:49:04 +08:00
parent f5968e518e
commit 5c83cf1d53
12 changed files with 691 additions and 6 deletions

76
.dockerignore Normal file
View File

@@ -0,0 +1,76 @@
# Dependencies
node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Environment files
.env
.env.local
.env.*.local
# Logs
logs/
*.log
# Data files
data/
temp/
# Git
.git/
.gitignore
.gitattributes
# GitHub
.github/
# Documentation
README.md
README_EN.md
CHANGELOG.md
docs/
*.md
# Development files
.vscode/
.idea/
*.swp
*.swo
*~
.DS_Store
# Docker files
docker-compose.yml
docker-compose.*.yml
Dockerfile
.dockerignore
# Test files
test/
tests/
__tests__/
*.test.js
*.spec.js
coverage/
.nyc_output/
# Build files
dist/
build/
*.pid
*.seed
*.pid.lock
# CI/CD
.travis.yml
.gitlab-ci.yml
azure-pipelines.yml
# Package manager files
package-lock.json
yarn.lock
pnpm-lock.yaml
# CLI
cli/