.dockerignore 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. # =============================================================================
  2. # Docker Ignore File for Sub2API
  3. # =============================================================================
  4. # Git
  5. .git
  6. .gitignore
  7. .gitattributes
  8. # Documentation
  9. *.md
  10. !deploy/DOCKER.md
  11. docs/
  12. # admin-compliance gate (LegalDocumentView.vue) build-time imports
  13. # docs/legal/*.md?raw into the frontend bundle; keep that subtree in the
  14. # Docker build context even though docs/ is otherwise excluded.
  15. !docs/legal/
  16. !docs/legal/*.md
  17. # IDE
  18. .idea/
  19. .vscode/
  20. *.swp
  21. *.swo
  22. # OS files
  23. .DS_Store
  24. Thumbs.db
  25. # Build artifacts
  26. dist/
  27. build/
  28. # Node modules (will be installed in container)
  29. frontend/node_modules/
  30. node_modules/
  31. # Go build cache (will be built in container)
  32. backend/vendor/
  33. # Test files
  34. *_test.go
  35. **/*.test.js
  36. coverage/
  37. .nyc_output/
  38. # Environment files
  39. .env
  40. .env.*
  41. !.env.example
  42. # 本地闭源插件目录可能包含发布签名私钥,绝不能进入 Docker 构建上下文。
  43. /plugins/
  44. # Local config
  45. config.yaml
  46. config.local.yaml
  47. # Logs
  48. *.log
  49. logs/
  50. # Temporary files
  51. tmp/
  52. temp/
  53. *.tmp
  54. # Deploy files (not needed in image)
  55. deploy/install.sh
  56. deploy/sub2api.service
  57. deploy/sub2api-sudoers
  58. deploy/data/
  59. deploy/postgres_data/
  60. deploy/redis_data/
  61. # GoReleaser
  62. .goreleaser.yaml
  63. # GitHub
  64. .github/
  65. # Claude files
  66. .claude/
  67. issues/
  68. CLAUDE.md