33 lines
606 B
Plaintext
33 lines
606 B
Plaintext
# 构建只需要 Go 源码(cmd / internal / pkg / migrations / go.mod / go.sum)
|
||
# 以下均为运行时产物、二进制、密钥与文档,排除后可把构建上下文从 ~1GB 降到几 MB
|
||
|
||
# 运行时上传文件与临时目录(最大头,~980MB)
|
||
tmp/
|
||
data/
|
||
|
||
# 编译产物
|
||
bin/
|
||
api
|
||
*.exe
|
||
|
||
# 日志
|
||
logs/
|
||
*.log
|
||
|
||
# 本地缓存
|
||
.git-cache/
|
||
|
||
# 密钥与环境文件(避免打进构建上下文)
|
||
.env
|
||
.env.*
|
||
|
||
# 脚本与文档(构建不需要)
|
||
# 注意:backend/docs 是被 router.go import 的 Swagger Go 包,不能排除
|
||
scripts/
|
||
*.md
|
||
|
||
# 其它
|
||
.DS_Store
|
||
Dockerfile
|
||
.dockerignore
|