Commit 6bbe465
committed
build(docker): 优化Docker配置并添加生产环境支持
重构所有Docker相关配置,包括:
- 添加多阶段构建优化镜像大小
- 实现生产环境配置(docker-compose.prod.yml)
- 新增部署脚本(deploy.sh)
- 完善Docker文档说明
- 添加健康检查和资源限制
- 实现非root用户运行容器
优化构建性能并增强安全性,为生产环境部署做好准备1 parent 2699488 commit 6bbe465
File tree
11 files changed
+1691
-100
lines changed- backend
- blog-web
- nginx
11 files changed
+1691
-100
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
0 commit comments