Languages
Node.js .dockerignore
.dockerignore for languages projects
.dockerignore Content
# ============================================================================
# Created by https://dockerignore.com/
# LANGUAGE-SPECIFIC TEMPLATE for Node.js
# Website: https://nodejs.org/
# Repository: https://github.com/nodejs/node
# ============================================================================
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# TEMPLATE OVERVIEW & USAGE NOTES
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# • TEMPLATE TYPE: LANGUAGE-SPECIFIC TEMPLATE
# • PURPOSE: Node.js runtime and ecosystem patterns for Docker builds
# • DESIGN PHILOSOPHY: Contains only Node.js-specific artifacts (no security patterns)
# • COMBINATION GUIDANCE: Combine with common templates for complete coverage
# • SECURITY CONSIDERATIONS: CRITICAL - Security patterns not included (always use common/security.dockerignore)
# • BEST PRACTICES: Always combine with security template for production use
# • OFFICIAL SOURCES: Node.js community patterns and Docker best practices
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# DEPENDENCIES & PACKAGE MANAGERS
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# Package managers and dependency directories
**/.npm/
**/.npm/_logs/
**/.pnpm-store/
**/.pnpm/
**/.yarn/
**/.yarn/cache/
**/bower_components/
**/node_modules/
.npmignore
.npmrc
.npmrc.*
.yarnrc
.yarnrc.yml
npm-debug.log*
pnpm-debug.log*
pnpm-workspace.yaml
yarn-error.log
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# NODE.JS BUILD ARTIFACTS & OUTPUT
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# Node.js build artifacts and output directories
**/.nyc_output/
**/.output/
**/build/
**/dist/
**/out/
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# NODE.JS CACHE & TEMPORARY FILES
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# Node.js cache and temporary files
**/.cache/
**/.turbo/
*.cache
*.temp
*.tmp
.node_repl_history
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# NODE.JS LOGS & DEBUG FILES
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# Node.js logs and debug files
**/logs/
*.log
*.log.*