RJBULK-APP/.dockerignore
SJCoetz cab91fb80f build(docker): add multi-stage docker build and .dockerignore
sets up production-grade multi-stage Docker build for the Next.js app, and configures .dockerignore to exclude dev artifacts, logs, env files, and unnecessary assets from the build context.
2026-07-19 21:05:04 +02:00

64 lines
1.9 KiB
Text

# ─── Build artifacts / state ───────────────────────────────────────────────────
node_modules
.next
.next/**
out
dist
.turbo
.tsbuildinfo
*.tsbuildinfo
.cache
coverage
# ─── Git / IDE ────────────────────────────────────────────────────────────────
.git
.gitignore
.gitattributes
.DS_Store
.idea
.vscode
*.swp
*.swo
*~
# ─── Env / secrets (Coolify sets these at runtime, never bake them in) ─────
.env
.env.local
.env.*.local
# ─── Logs / tmp ───────────────────────────────────────────────────────────────
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
tmp
tmp/**
# ─── Test / dev artifacts ──────────────────────────────────────────────────────
__snapshots__
**/*.test.ts
**/*.test.tsx
**/*.spec.ts
**/*.spec.tsx
**/__mocks__/**
# ─── Docs (not needed at runtime) ─────────────────────────────────────────────
*.md
!README.md
AGENTS.md
docs/**
# ─── Migration / setup scripts (run from local, not in container) ──────────────
scripts/setup-pb.mjs
scripts/migrate*.py
scripts/migrate*.mjs
scripts/diag.mjs
scripts/screenshot.mjs
scripts/shoot-*.mjs
scripts/render-pdfs.mjs
diag.mjs
# ─── Public assets that aren't needed at runtime ──────────────────────────────
public/*.bak
public/*.tmp