v0.15.0: Docker 化部署(OVH-US-BAK)
- Dockerfile(oven/bun 多阶段:构建 dist + 全量 node_modules 运行时) - deploy/docker-compose.yml(postgres:18 + app,uploads 双挂载同宿主目录) - .dockerignore(uploads 经卷挂载不进镜像,避免 3GB 膨胀) - prod-server /uploads/* 运行时直读磁盘(媒体上传后无需重启即可访问,含路径穿越防护) - README Docker 部署章节
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
# Docker 构建上下文排除项(uploads 经 compose 卷挂载进容器,不进镜像)
|
||||
node_modules
|
||||
dist
|
||||
.git
|
||||
.env
|
||||
backups
|
||||
legacy
|
||||
visual-audit
|
||||
docs
|
||||
tests
|
||||
public/uploads
|
||||
Reference in New Issue
Block a user