fix:优化docker构建速度

This commit is contained in:
2025-11-13 15:27:23 +08:00
parent b6de82387c
commit 1f21fbfe16
3 changed files with 50 additions and 3 deletions

37
.dockerignore Normal file
View File

@@ -0,0 +1,37 @@
# Speed up docker build by shrinking context and avoiding host artifacts
.git
.gitignore
node_modules
pnpm-debug.log
npm-debug.log
yarn-debug.log
yarn-error.log
.DS_Store
**/.DS_Store
# Monorepo: ignore nested installs and build outputs
apps/**/node_modules
apps/**/dist
apps/**/.next
apps/**/.nuxt
apps/**/build
apps/**/.cache
# Editor/OS noise
.vscode
.idea
*.swp
*.swo
Thumbs.db
# Docker
Dockerfile*
!Dockerfile
docker-compose*.yml
!.dockerignore
# Tests and coverage
coverage
**/coverage
*.lcov