abinazebinoy commited on
Commit
88e4871
·
1 Parent(s): 8d0d3e0

fix(F-24a): add .dockerignore

Browse files

No .dockerignore existed anywhere in the repo, and the Dockerfile does
COPY . . -- this bundled .git (full history, including anything ever
committed and later removed), backend/tests/, docs, and the data/ai +
data/real sample-dataset tree into the production image, increasing
image size unnecessarily. data/reference (the small LFS-pointer-stub
reference files) is deliberately left in, since it's tiny either way
and this isn't the place to guess whether anything still expects it
present at build time.

Files changed (1) hide show
  1. .dockerignore +29 -0
.dockerignore ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # F-24: no .dockerignore existed, so `COPY . .` in the Dockerfile bundled
2
+ # the full .git history (including anything ever committed and later
3
+ # removed), the test suite, and the sample dataset tree into every
4
+ # production image -- increasing image size and shipping content that
5
+ # was never meant to end up in a deployed container.
6
+
7
+ .git
8
+ .github
9
+ .gitignore
10
+ .gitattributes
11
+
12
+ backend/tests
13
+ backend/.pytest_cache
14
+ backend/__pycache__
15
+ **/__pycache__
16
+ **/*.pyc
17
+
18
+ data/ai
19
+ data/real
20
+ *.ipynb
21
+
22
+ .env
23
+ .env.*
24
+ !.env.example
25
+
26
+ .vscode
27
+ .idea
28
+ *.md
29
+ !README.md