chore(docker): 优化COMCMS Web服务Docker配置

- 修改docker-compose配置,调整构建上下文和Dockerfile路径
- 重新设计COMCMS.Web Dockerfile,分阶段构建镜像
- 添加依赖还原、构建和发布步骤,实现多阶段构建
- 设置发布文件复制和权限配置,确保容器运行用户安全
- 保留健康检查配置,监控服务状态
This commit is contained in:
jonah.fu
2025-12-06 19:50:40 +08:00
parent 1937f09864
commit dc7e7fe41b
2 changed files with 32 additions and 4 deletions
+2 -2
View File
@@ -39,8 +39,8 @@ services:
# COMCMS Web 服务
web:
build:
context: ./COMCMS.Web
dockerfile: Dockerfile
context: .
dockerfile: COMCMS.Web/Dockerfile
container_name: comcms_web
restart: unless-stopped
ports: