mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-01 15:32:48 +08:00
feat(stack): 新增 docker-dev-sync 模式,优化 Windows 下 Docker 开发 I/O 性能
- 新增 source/stack/docker-dev-sync/ 模式目录 - 宿主代码映射到 /var/www/source(bind mount 中转) - 容器内 rsync 定时同步到 /var/www/html(原生文件系统) - vendor 由 Docker build 管理,不参与同步 - rsync 使用 --no-perms 避免保留 Windows 源文件权限 - 排除 docker-dev/、runtime/、.git/ 等无关目录 - SYNC_INTERVAL 环境变量可配置轮询间隔(默认 3 秒) - 更新 stack.json 注册模式并声明 sync.sh 为托管文件 - 调整 CI 构建流程:先安装依赖再切换 stack 模式
This commit is contained in:
7
source/stack/docker-dev-sync/.dockerignore
Normal file
7
source/stack/docker-dev-sync/.dockerignore
Normal file
@@ -0,0 +1,7 @@
|
||||
.git
|
||||
.sisyphus
|
||||
node_modules
|
||||
runtime
|
||||
docker-dev
|
||||
docker-dev-sync
|
||||
*.sock
|
||||
Reference in New Issue
Block a user