# Docker 构建上下文排除（构建上下文 = TDS 仓根）
#
# 🔴 不排除时上下文含 `boot/*/target`（fat jar 数百 MB）与 `frontend/node_modules`
#    ⇒ 每次 build 都要打包上传，极慢且无意义。
#
# ⚠️ **两个产物必须放行**（由 deploy/Dockerfile COPY）：
#    ① `boot/ssw-tds-admin/target/ssw-tds-admin-*.jar`（宿主 mvn 产出）
#    ② `frontend/web/dist/`（宿主 vite 产出）
#    ⇒ 例外规则写在排除**之后**（dockerignore 按顺序匹配，后者覆盖前者）。

# --- 构建输出：排除各模块 target 的**内容**，但放行平台的 jar ---
boot/**/target/**
**/target/**
!boot/ssw-tds-admin/target/ssw-tds-admin-*.jar

# --- 前端：放行 frontend/web/dist/，排除 node_modules 与其它产物 ---
frontend/**/node_modules/
frontend/**/dist-conn-*/
frontend/**/.vite/

# --- Python 缓存（fisco 适配器等）---
**/__pycache__/
**/*.pyc
**/*.pytest_cache/

# --- 大文件 dump（j7 约 128MB，运行时挂载，不参与构建）---
db/dump/
db/**/*.sql.gz

# --- VCS / 编辑器 / 日志 ---
.git/
.gitignore
.idea/
.vscode/
*.log
**/hs_err_pid*.log
**/.DS_Store
