.dockerignore 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. # 依赖目录
  2. **/node_modules
  3. **/npm-debug.log*
  4. **/yarn-debug.log*
  5. **/yarn-error.log*
  6. **/pnpm-debug.log*
  7. # 构建输出
  8. **/dist
  9. # 注意:保留 web/build 目录(Vite 配置文件)
  10. server/build
  11. **/.next
  12. **/.nuxt
  13. **/.vuepress/dist
  14. # 开发和测试文件
  15. **/.vscode
  16. **/.idea
  17. **/coverage
  18. **/test
  19. **/*.test.js
  20. **/*.test.ts
  21. **/*.spec.js
  22. **/*.spec.ts
  23. **/jest.config.js
  24. **/cypress
  25. **/.nyc_output
  26. # 日志文件
  27. **/logs
  28. **/*.log
  29. **/log
  30. # 运行时数据
  31. **/pids
  32. **/*.pid
  33. **/*.seed
  34. **/*.pid.lock
  35. # 可选npm缓存目录
  36. **/.npm
  37. # 可选yarn缓存目录
  38. **/.yarn-integrity
  39. # dotenv环境变量文件
  40. # 保留构建和运行需要的环境变量文件
  41. # **/.env
  42. **/.env.local
  43. **/.env.development.local
  44. **/.env.test.local
  45. **/.env.production.local
  46. # 注意:在生产环境中,应通过 docker-compose 或环境变量注入来设置敏感信息
  47. # parcel-bundler缓存目录
  48. **/.cache
  49. **/.parcel-cache
  50. # next.js构建输出
  51. **/.next
  52. # nuxt.js构建输出
  53. **/.nuxt
  54. # vuepress构建输出
  55. **/.vuepress/dist
  56. # Serverless目录
  57. **/.serverless
  58. # FuseBox缓存
  59. **/.fusebox/
  60. # DynamoDB本地文件
  61. **/.dynamodb/
  62. # MacOS
  63. **/.DS_Store
  64. # Windows
  65. **/Thumbs.db
  66. **/ehthumbs.db
  67. **/Desktop.ini
  68. # Linux
  69. **/*~
  70. # Git
  71. **/.git
  72. **/.gitignore
  73. **/README.md
  74. # Docker
  75. **/Dockerfile*
  76. **/docker-compose*
  77. **/.dockerignore
  78. # 上传的文件(开发环境)
  79. **/upload
  80. # 临时文件
  81. **/tmp
  82. **/temp
  83. # 编辑器配置
  84. **/.editorconfig
  85. **/.eslintrc*
  86. **/.prettierrc*
  87. # TypeScript
  88. **/tsconfig.json
  89. # 数据库相关
  90. **/prisma/dev.db*
  91. **/prisma/migrations
  92. # Lock files (保留package.json但排除锁文件重复)
  93. # 注意:我们在Dockerfile中单独复制了锁文件
  94. # **/package-lock.json
  95. # **/yarn.lock