File size: 2,166 Bytes
2a6c3b9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# ── Build hygiene β€” what NEVER goes into the container image ─────────────────
# Mirrors .gitignore for the obvious cases, plus a few build-only paths.
# Keeping the image small is mostly about excluding caches, vendored deps,
# local DBs, logs, and the proprietary KB corpus.

# Version control & editor metadata
.git
.gitignore
.gitattributes
.github
.vscode
.idea

# Cursor / Claude / agent worktrees (local-only)
.cursor
.claude

# Python build artefacts
__pycache__
*.py[cod]
*$py.class
*.so
.Python
build
dist
wheels
*.egg-info
*.egg
pip-wheel-metadata

# Virtual environments
.venv
venv
env
ENV

# Test code & coverage outputs β€” runtime never imports tests, so shipping
# them just bloats the image and widens the attack surface.
backend/tests
tests
e2e_*.py
.pytest_cache
.coverage
.coverage.*
htmlcov
.tox
.nox
.mypy_cache
.ruff_cache

# Local databases & their backups (NEVER ship tenant data in the image)
*.db
*.sqlite
*.sqlite3
*.db.bak
*.db.bak-*
*.sqlite.bak
*.sqlite.bak-*
*.bak
*.bak-*
*.backup

# Runtime artefacts that should never be baked in
.rics_v2_data
Generated report
Generated report.txt
Master Standard report and paragraphs
Messy notes.docx
My literature April 2026.docx
mnt/data
chroma_data
faiss_index
report_photos
mock_survey_*.docx
# Stray .docx in repo root (test fixtures, ad-hoc dumps) β€” use mock_survey_*
# inside backend/tests if a sample is genuinely needed.
*.docx

# Proprietary RICS corpora (gitignored; defence in depth in case they
# exist locally on a developer's disk during `docker build`).
Behrang RICS Documents
RAW Context

# Logs (server dumps, ad-hoc traces)
*.log
uvicorn_*.log
uvicorn_*.txt
*_log.txt
*_stdout.txt
*_stderr.txt

# Temporary analysis outputs
tmp_*.txt
tmp_*.json

# Secrets β€” must never be in the image. Use the platform's secret manager.
.env
.env.*
!.env.example
API\ KEY.txt
*.pem
*.key
*.crt

# OS junk
.DS_Store
Thumbs.db
*.swp
*.swo

# Docs / scaffolding that the runtime doesn't need.
# README.md is exempted because Hatchling reads it during `pip install` in
# stage 1 (see Dockerfile); without the negation the build fails.
*.md
!README.md