perf: docker + next.js build optimisation - dockerignore exclusions, BuildKit cache mounts, backend image reuse, memory limits, next.js bundle tree-shaking

This commit is contained in:
2026-09-20 12:03:58 +05:30
parent fee57e154b
commit 896073ea2d
6 changed files with 317 additions and 170 deletions

View File

@@ -1,12 +1,54 @@
# ── Node / NPM ─────────────────────────────────────────────────────────────
node_modules
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
# ── Next.js build artefacts ─────────────────────────────────────────────────
.next
out
# ── Git / CI ────────────────────────────────────────────────────────────────
.git
.gitignore
.github
# ── Secrets / env files (injected at runtime via docker-compose env_file) ───
.env
.env.local
.env.development.local
.env.test.local
.env.production.local
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
# ── Python artefacts ─────────────────────────────────────────────────────────
__pycache__
*.pyc
*.pyo
*.pyd
.Python
backend/__pycache__
backend/celerybeat-schedule
# ── IDE / OS ─────────────────────────────────────────────────────────────────
.DS_Store
Thumbs.db
.vscode
.idea
# ── Heavy static data not needed in the image ────────────────────────────────
dpps
scratch
*.pdf
jee_advanced_full_90q.json
neet_180_questions.json
neet_sample_questions.md
API_DOCUMENTATION.md
PAGEWISE_API_DOCUMENTATION.md
DESIGN_SYSTEM.md
PRD.md
admin_json_samples.md
README.md
# ── TypeScript build info ────────────────────────────────────────────────────
tsconfig.tsbuildinfo