dgx-spark-playbooks/nvidia/txt2kg/assets/.dockerignore
Santosh Bhavani 0d5b85cdc5 Optimize Docker build with multi-stage caching
- Implement multi-stage Dockerfile (deps → builder → runner)
- Add BuildKit cache mounts for pnpm store and Next.js build cache
- Enable Next.js standalone output for smaller production images
- Create non-root user (nextjs:nodejs) with proper permissions
- Enhance .dockerignore to exclude more build artifacts
- Build time reduced from 225+ seconds to ~35 seconds

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-25 13:48:36 -07:00

44 lines
400 B
Plaintext

# Dependencies
node_modules
.pnpm-store
**/node_modules
**/.pnpm-store
# Next.js build outputs
.next
out
**/.next
**/out
# Git
.git
.gitignore
**/.git
# Logs
*.log
npm-debug.log*
pnpm-debug.log*
yarn-debug.log*
yarn-error.log*
# IDE
.vscode
.idea
*.swp
*.swo
.DS_Store
# Testing
coverage
__tests__
*.test.ts
*.test.tsx
*.spec.ts
*.spec.tsx
# Misc
.env.local
.env.*.local
README.md
.eslintcache