Skip to content

Commit 4028e94

Browse files
committed
fix: add .dockerignore file to repository
- Remove .dockerignore from .gitignore (should be committed) - Add comprehensive .dockerignore to prevent sensitive data in builds - Excludes .env files, secrets, credentials, git files, build artifacts
1 parent 8d854dc commit 4028e94

2 files changed

Lines changed: 224 additions & 1 deletion

File tree

.dockerignore

Lines changed: 222 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,222 @@
1+
# Security: Exclude sensitive files and secrets
2+
.env
3+
.env.*
4+
!.env.example
5+
secrets/
6+
*.pem
7+
*.key
8+
*.crt
9+
*.cert
10+
*.p12
11+
*.pfx
12+
*.jks
13+
*.keystore
14+
*.token
15+
*.credential
16+
*.secret
17+
18+
# Git files (not needed in container)
19+
.git/
20+
.gitignore
21+
.gitattributes
22+
.gitmodules
23+
.github/
24+
25+
# Virtual environments (not needed in container)
26+
.venv/
27+
venv/
28+
env/
29+
ENV/
30+
env.bak/
31+
venv.bak/
32+
__pycache__/
33+
*.py[cod]
34+
*$py.class
35+
*.so
36+
.Python
37+
38+
# Node.js (handled in multi-stage build, but exclude to reduce context size)
39+
node_modules/
40+
npm-debug.log*
41+
yarn-debug.log*
42+
yarn-error.log*
43+
.pnpm-debug.log*
44+
.npm/
45+
.yarn/
46+
47+
# Build artifacts (will be built in container)
48+
build/
49+
dist/
50+
*.egg-info/
51+
.eggs/
52+
eggs/
53+
develop-eggs/
54+
downloads/
55+
wheels/
56+
pip-wheel-metadata/
57+
share/python-wheels/
58+
*.egg
59+
MANIFEST
60+
61+
# Frontend build (will be built in multi-stage)
62+
src/ui/web/build/
63+
src/ui/web/.cache/
64+
src/ui/web/node_modules/
65+
src/ui/web/.env.local
66+
src/ui/web/.env.development.local
67+
src/ui/web/.env.test.local
68+
src/ui/web/.env.production.local
69+
70+
# IDE and editor files
71+
.vscode/
72+
.idea/
73+
*.swp
74+
*.swo
75+
*~
76+
.project
77+
.classpath
78+
.settings/
79+
*.sublime-project
80+
*.sublime-workspace
81+
82+
# OS files
83+
.DS_Store
84+
.DS_Store?
85+
._*
86+
.Spotlight-V100
87+
.Trashes
88+
ehthumbs.db
89+
Thumbs.db
90+
desktop.ini
91+
92+
# Logs
93+
*.log
94+
logs/
95+
*.log.*
96+
97+
# Database files (not needed in container)
98+
*.db
99+
*.sqlite
100+
*.sqlite3
101+
*.sql
102+
103+
# User uploads and runtime data
104+
data/uploads/
105+
data/sample/*_results.json
106+
data/sample/*_demo*.json
107+
data/sample/pipeline_test_results/
108+
document_statuses.json
109+
phase1_phase2_forecasts.json
110+
rapids_gpu_forecasts.json
111+
historical_demand_summary.json
112+
build-info.json
113+
114+
# Test files and coverage
115+
tests/
116+
test_*.py
117+
*_test.py
118+
htmlcov/
119+
.coverage
120+
.coverage.*
121+
coverage.xml
122+
*.cover
123+
.hypothesis/
124+
.pytest_cache/
125+
.tox/
126+
.nox/
127+
128+
# Documentation (not needed at runtime)
129+
docs/
130+
*.md
131+
!README.md
132+
LICENSE
133+
CHANGELOG.md
134+
DEPLOYMENT.md
135+
QUICK_START.md
136+
SECURITY.md
137+
PRD.md
138+
Functional*.md
139+
REQUIREMENTS*.md
140+
USE_CASES*.md
141+
UNNECESSARY_FILES.md
142+
143+
# Jupyter notebooks
144+
notebooks/
145+
.ipynb_checkpoints
146+
*.ipynb
147+
148+
# Temporary files
149+
tmp/
150+
temp/
151+
*.tmp
152+
*.bak
153+
*.swp
154+
*.swo
155+
*~
156+
157+
# Docker files (not needed in image)
158+
Dockerfile*
159+
docker-compose*.yml
160+
docker-compose*.yaml
161+
.dockerignore
162+
163+
# CI/CD files
164+
.github/
165+
.gitlab-ci.yml
166+
.travis.yml
167+
.circleci/
168+
Jenkinsfile
169+
170+
# Deployment configs (not needed in runtime image)
171+
deploy/
172+
monitoring/
173+
nginx.conf
174+
175+
# Scripts (not needed in runtime, only source code)
176+
scripts/
177+
178+
# Type checking and linting
179+
.mypy_cache/
180+
.dmypy.json
181+
dmypy.json
182+
.pyre/
183+
.pytype/
184+
.ruff_cache/
185+
186+
# Other development files
187+
.python-version
188+
Pipfile
189+
Pipfile.lock
190+
poetry.lock
191+
pyproject.toml
192+
setup.py
193+
setup.cfg
194+
MANIFEST.in
195+
requirements*.txt
196+
!requirements.docker.txt
197+
198+
# Celery
199+
celerybeat-schedule
200+
celerybeat.pid
201+
202+
# Rope
203+
.ropeproject
204+
205+
# mkdocs
206+
site/
207+
208+
# Spyder
209+
.spyderproject
210+
.spyproject
211+
212+
# PEP 582
213+
__pypackages__/
214+
215+
# SageMath
216+
*.sage.py
217+
218+
# Local configuration
219+
local_settings.py
220+
local_config.py
221+
config.local.*
222+

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ ui/mobile/android/app/build/
7474
ui/mobile/ios/build/
7575

7676
# Docker
77-
.dockerignore
77+
# Note: .dockerignore should be committed to repo for Docker builds
78+
# .dockerignore
7879
*.bak
7980
docker-compose*.bak
8081

0 commit comments

Comments
 (0)