Skip to content

Commit 65c1527

Browse files
committed
Harden .dockerignore with security best practices
1 parent 245ff2e commit 65c1527

File tree

1 file changed

+47
-28
lines changed

1 file changed

+47
-28
lines changed

.dockerignore

Lines changed: 47 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,43 @@
1-
# Git
1+
# Version control
22
.git/
33
.gitignore
44
.gitattributes
55
.github/
66
.gitleaksignore
77
.gitlint
88

9+
# Secrets and credentials
10+
.env
11+
.env.*
12+
!.env.example
13+
*.key
14+
*.pem
15+
*.p12
16+
*.pfx
17+
*id_rsa*
18+
*id_ed25519*
19+
credentials.json
20+
secrets.json
21+
.secrets.baseline
22+
.netrc
23+
.npmrc
24+
.yarnrc
25+
.age-key.txt
26+
.garminconnect/
27+
28+
# Cloud credentials
29+
.aws/
30+
.gcloud/
31+
.azure/
32+
33+
# Private directory
34+
private/
35+
36+
# Shell history
37+
.bash_history
38+
.zsh_history
39+
.sh_history
40+
941
# Python
1042
__pycache__/
1143
*.py[cod]
@@ -32,34 +64,30 @@ frontend/dist/
3264
frontend/.vite/
3365
frontend/coverage/
3466

35-
# IDE
67+
# IDE and editors
3668
.vscode/
3769
.idea/
3870
*.swp
3971
*.swo
4072
*~
41-
.claude/
4273

43-
# OS
74+
# OS files
4475
.DS_Store
4576
Thumbs.db
4677

78+
# Claude AI tools
79+
.claude/
80+
4781
# Documentation
48-
CLAUDE.md
82+
*.md
83+
!README.md
4984

50-
# Data files (will be mounted as volumes)
85+
# Data files (mounted as volumes)
5186
data/
5287
*.csv
53-
*.html
54-
*.txt
5588
correlation_*.html
5689
daily_briefing_*.txt
5790

58-
# Environment files (will be created by container)
59-
.env
60-
.garminconnect/
61-
.secrets.baseline
62-
6391
# Logs
6492
logs/
6593
*.log
@@ -68,14 +96,17 @@ logs/
6896
tmp/
6997
temp/
7098
*.tmp
99+
*.bak
71100

72101
# CI/CD
73102
.pre-commit-config.yaml
74103
.markdownlint.yaml
104+
renovate.json
75105

76-
# Docker
77-
docker-compose.yml
78-
docker-compose.override.yml
106+
# Docker (prevent recursive inclusion)
107+
Dockerfile*
108+
.dockerignore
109+
docker-compose*.yml
79110

80111
# Nested node_modules
81112
data/google/scripts/node_modules/
@@ -84,17 +115,5 @@ data/google/scripts/node_modules/
84115
tree.tmp
85116
directory_tree.yaml
86117

87-
# SSH keys (prevent accidental exposure)
88-
*id_rsa*
89-
*id_ed25519*
90-
*.key
91-
*.pem
92-
93-
# Private directory
94-
private/
95-
96118
# Makefile
97119
Makefile
98-
99-
# Renovate
100-
renovate.json

0 commit comments

Comments
 (0)