Common
Cache .dockerignore
.dockerignore for common projects
.dockerignore Content
# ============================================================================
# Created by https://dockerignore.com/
# COMMON PATTERNS TEMPLATE for Cache
# Website: https://dockerignore.com/
# Repository: https://github.com/ronald2wing/.dockerignore
# ============================================================================
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# TEMPLATE OVERVIEW & USAGE NOTES
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# • TEMPLATE TYPE: COMMON PATTERNS TEMPLATE
# • PURPOSE: Cache and temporary file patterns for all projects
# • DESIGN PHILOSOPHY: Modular cache patterns for combination with other templates
# • COMBINATION GUIDANCE: Combine with language or framework templates as needed
# • SECURITY CONSIDERATIONS: Cache files don't contain sensitive data but impact performance
# • BEST PRACTICES: Use to exclude cache files from Docker builds for better performance
# • OFFICIAL SOURCES: Docker performance optimization best practices
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# DEPENDENCIES & PACKAGE MANAGERS
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# Package manager directories
**/.npm/
**/.npminstall/
**/.pnpm-store/
**/.yarn-cache/
**/.yarn/
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# BUILD ARTIFACTS & OUTPUT
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# Build system directories
**/.cmake-build-*/
**/.xcodebuild/
**/build-*/
**/cmake-build-*/
**/out-*/
.tsbuildinfo
.tsbuildinfo.*
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# CACHE AND TEMPORARY FILES
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
**/.cache/
**/.parcel-cache/
**/.temp/
**/.tmp/
**/.turbo/
**/private/tmp/
**/private/var/tmp/
**/temp/
**/tmp/
**/var/tmp/
*.cache
*.temp
*.tmp
.cache-*
.cache.*
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# DEVELOPMENT TOOLS & LANGUAGE-SPECIFIC
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# Development tools, language-specific directories, and miscellaneous files
**/.atom-cache/
**/.babel-cache/
**/.browser-cache/
**/.bun/
**/.cargo/
**/.cargo/git/
**/.cargo/registry/
**/.chrome-cache/
**/.cmake/
**/.emacs.d/auto-save-list/
**/.emacs.d/backup/
**/.firefox-cache/
**/.idea/caches/
**/.less-cache/
**/.nx/
**/.nx/cache/
**/.pnp/
**/.postcss-cache/
**/.safari-cache/
**/.sass-cache/
**/.stylus-cache/
**/.sublime-cache/
**/.swiftpm/
**/.vim-cache/
**/.vscode/cache/
**/.vscode/workspaceStorage/
**/__pycache__/
**/cache/
**/composer-cache/
**/go/pkg/mod/
**/gradle-cache/
**/ivy-cache/
**/maven-repo/
**/pip-cache/
**/sbt-cache/
**/target-*/
**/var/cache/
*.7z
*.class
*.ear
*.jar
*.lck
*.lib
*.lock
*.o
*.obj
*.pid
*.pid.lock
*.py,cover
*.pyc
*.pyd
*.pyo
*.rar
*.session
*.state
*.tar
*.tar.gz
*.tgz
*.war
*.zip
.eslintcache
.pnp.cjs
.pnp.js
.pnp.loader.mjs
.prettiercache
.stylelintcache
.webassets-cache
cache-*
cache.*