48 lines
1.1 KiB
Plaintext
48 lines
1.1 KiB
Plaintext
# =============================================================================
|
||
# 构建上下文:只该有源码。下面两类东西一律不进镜像——
|
||
# ① 几百 MB 且跨机不可用的(.venv、node_modules、models、data、media)
|
||
# ② 机密与本机状态(.env、scripts/seed、*.db、.local、.trash)
|
||
# 第二条比第一条更容易出错:COPY 到的机密会永久留在镜像层里,
|
||
# 推去 registry 就等于把加密主密钥发给所有能拉镜像的人,所以 scripts/seed 走 volume 挂载。
|
||
# 注意 frontend/dist 也排除:产物在镜像里由 node 阶段重新构建,
|
||
# 带开发机的 dist 进去 = 页面上跑的是上一次构建的代码,且没人看得出来。
|
||
# =============================================================================
|
||
.git
|
||
.gitignore
|
||
.github
|
||
.venv
|
||
venv
|
||
__pycache__
|
||
**/__pycache__
|
||
*.py[cod]
|
||
.pytest_cache
|
||
.mypy_cache
|
||
.ruff_cache
|
||
frontend/node_modules
|
||
frontend/dist
|
||
node_modules
|
||
media
|
||
models
|
||
data
|
||
reports
|
||
.local
|
||
.trash
|
||
docs
|
||
backend/tests
|
||
nex_animation.db
|
||
*.db
|
||
*.db-wal
|
||
*.db-shm
|
||
*.sqlite3
|
||
.env
|
||
.env.*.local
|
||
scripts/seed
|
||
scripts/ui
|
||
*.log
|
||
nohup.out
|
||
*.pid
|
||
.idea
|
||
.vscode
|
||
.DS_Store
|
||
._*
|