Skip to content

Commit 46c9cd6

Browse files
authored
Merge pull request #15 from ZORDxDD/main
Created .dockerignore file
2 parents 0797a8c + 2373a47 commit 46c9cd6

File tree

1 file changed

+161
-0
lines changed

1 file changed

+161
-0
lines changed

.dockerignore

Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
1+
# .dockerignore for Orion (Rust project)
2+
# Purpose: reduce Docker build context, avoid copying local dev artifacts,
3+
# and keep images smaller/faster to build.
4+
5+
# -------------------------
6+
# Version control
7+
# -------------------------
8+
.git/
9+
.gitattributes
10+
# (keep .gitignore tracked — no need to ignore it)
11+
12+
# -------------------------
13+
# Rust build artifacts
14+
# -------------------------
15+
target/
16+
**/target/
17+
18+
# Cargo registry and cache
19+
.cargo/
20+
.cargo-ok
21+
22+
# -------------------------
23+
# Editor / IDE files
24+
# -------------------------
25+
.vscode/
26+
.idea/
27+
*.swp
28+
*.swo
29+
*~
30+
.*.swp
31+
.~*
32+
33+
# -------------------------
34+
# OS artifacts
35+
# -------------------------
36+
.DS_Store
37+
Thumbs.db
38+
desktop.ini
39+
ehthumbs.db
40+
41+
# -------------------------
42+
# Logs and envs
43+
# -------------------------
44+
*.log
45+
logs/
46+
.env
47+
.env.local
48+
.env.*.local
49+
50+
# -------------------------
51+
# Temp and cache
52+
# -------------------------
53+
tmp/
54+
temp/
55+
*.tmp
56+
.cache/
57+
58+
# -------------------------
59+
# Compiled binaries & libs
60+
# -------------------------
61+
*.exe
62+
*.dll
63+
*.so
64+
*.dylib
65+
66+
# -------------------------
67+
# Archives & large files
68+
# -------------------------
69+
*.tar.gz
70+
*.zip
71+
*.rar
72+
# *.csv # Uncomment if you have large CSV data files you want to exclude from the build context.
73+
*.bak
74+
*.backup
75+
76+
# -------------------------
77+
# Node / frontend artifacts (if any)
78+
# -------------------------
79+
node_modules/
80+
npm-debug.log*
81+
yarn-debug.log*
82+
yarn-error.log*
83+
84+
# -------------------------
85+
# Python virtual envs
86+
# -------------------------
87+
venv/
88+
env/
89+
.venv/
90+
91+
# -------------------------
92+
# Toolchain / formatters (not needed inside image)
93+
# -------------------------
94+
rust-toolchain
95+
rust-toolchain.toml
96+
clippy.toml
97+
rustfmt.toml
98+
99+
# -------------------------
100+
# Examples, demos, tests (prod images typically don't need these)
101+
# -------------------------
102+
examples/
103+
demos/
104+
benches/
105+
**/benches/
106+
107+
# Exclude tests but keep some bootstrap files used in CI/runtime
108+
tests/
109+
**/tests/
110+
!orion-data-plane-api/tests/bootstrap*.yml
111+
112+
# Docs and performance artifacts
113+
docs/_build/
114+
docs/build/
115+
docs/pics/
116+
docs/videos/
117+
docs/performance/
118+
119+
# Tools and local scripts not needed in image
120+
tools/
121+
122+
# Coverage / profiling
123+
coverage/
124+
*.profraw
125+
*.prof
126+
127+
# PlantUML
128+
*.plantuml
129+
130+
# Config examples to exclude
131+
orion-configuration/examples/
132+
orion-xds/examples/
133+
134+
# Keep essential repo/build files (whitelist)
135+
!README.md
136+
!LICENSE
137+
!Cargo.toml
138+
!Cargo.lock
139+
140+
# -------------------------
141+
# NOTE about Dockerfile / docker/ directory
142+
# -------------------------
143+
# DO NOT uncomment these lines unless you are absolutely sure your
144+
# normal build never needs the repository-level Dockerfile or contents
145+
# of the docker/ directory. Ignoring them will break common `docker build .`
146+
# workflows. If your build always runs from inside docker/, you may
147+
# choose to uncomment.
148+
# docker/
149+
# Dockerfile*
150+
# If you DO need specific scripts from docker/, explicitly ignore other files
151+
# instead of the whole directory (or ensure you build using -f docker/Dockerfile).
152+
153+
# -------------------------
154+
# Shell scripts
155+
# -------------------------
156+
# Be cautious: ignore generic *.sh only if you are certain no build scripts are required.
157+
# Commented out by default to avoid excluding build helpers.
158+
# *.sh
159+
# If you want to exclude local helper scripts, list them explicitly, e.g.
160+
# scripts/local-only.sh
161+
!docker/*.sh

0 commit comments

Comments
 (0)