-
Notifications
You must be signed in to change notification settings - Fork 2k
Expand file tree
/
Copy path.dockerignore
More file actions
177 lines (163 loc) · 3.36 KB
/
.dockerignore
File metadata and controls
177 lines (163 loc) · 3.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
# ===========================================
# Docker 构建镜像过滤配置文件
# 作用:在 docker build 时排除不需要的文件,减小构建上下文
# ===========================================
# ===========================================
# 1. 版本控制与 Git 相关
# ===========================================
.git
.gitignore
.gitattributes
.gitmodules
# ===========================================
# 2. Docker 相关文件(构建时使用,不需要进入镜像)
# ===========================================
Dockerfile
.dockerignore
docker-compose*.yml
docker-compose*.yaml
.docker
Dockerfile.*
*.mdc
# ===========================================
# 3. IDE 和编辑器配置
# ===========================================
.idea/
.vscode/
.vs/
*.swp
*.swo
*~
.DS_Store
Thumbs.db
ehthumbs.db
Desktop.ini
# ===========================================
# 4. 项目辅助目录
# ===========================================
help/
template/
docs/
doc/
*.md
LICENSE
README*
CHANGELOG*
CHANGE*
HISTORY*
CONTRIBUTING*
# ===========================================
# 5. 缓存和临时文件
# ===========================================
.runtime/
runtime/
*.log
*.tmp
*.temp
*.cache
*.bak
*.backup
*_backup
*.old
*.swp
*.swo
*~
.DS_Store
# ===========================================
# 6. Node.js 相关(前端依赖,构建后不需要)
# ===========================================
node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.npm
.yarn/
.browserslistrc
.eslintcache
.node_repl_history
# ===========================================
# 7. PHP Composer 依赖(不使用时的清理)
# ===========================================
# 注意:如果 vendor 目录需要,进入镜像时不要排除
# 如果使用 composer install 构建,则可以排除
# vendor/test/
# vendor/tests/
# vendor/docs/
# vendor/*.txt
# vendor/*.md
# ===========================================
# 8. 大型字体文件(不必要的资源)
# ===========================================
# simsun.ttc
# WenQuanZhengHei.ttf
crmeb/vendor/dh2y/think-qrcode/src/simsun.ttc
crmeb/vendor/fastknife/ajcaptcha/resources/fonts/WenQuanZhengHei.ttf
# ===========================================
# 9. 数据库和安装文件(运行镜像时重新生成)
# ===========================================
*.sql
*.sql.gz
*.sql.bak
# ===========================================
# 10. 测试和开发文件
# ===========================================
phpunit.xml
phpunit.xml.dist
tests/
test/
Benchmark/
coverage/
.phpunit.result.cache
.php_cs
.php-cs-fixer.cache
.styleci.yml
codesniffer.ruleset.xml
# ===========================================
# 11. 环境配置文件(敏感信息,运行时挂载)
# ===========================================
.env
.env.*
!.env.example
.secret
.secrets
*.key
*.pem
*.crt
*.csr
# ===========================================
# 12. 备份和历史文件
# ===========================================
*backup*
*_backup*
*_bak*
*.backup
*.bak
*~
*.orig
*.rej
*_COPYING_*
*_TRASH_*
# ===========================================
# 13. 开发辅助文件
# ===========================================
.trae/
.codebuddy/
.scribe/
.phpunit.result.cache
php_errors.log
*.log
# ===========================================
# 14. 其他大型或不必要的文件
# ===========================================
*.zip
*.tar
*.tar.gz
*.tgz
*.rar
*.7z
*.iso
*.img
*.dmg
*.pdf
*.exe
*.msi