Languages

JavaScript .dockerignore

.dockerignore for languages projects

View on GitHub

.dockerignore Content

# ============================================================================
# Created by https://dockerignore.com/
# LANGUAGE-SPECIFIC TEMPLATE for JavaScript
# Website: https://developer.mozilla.org/en-US/docs/Web/JavaScript
# Repository: https://github.com/tc39/ecma262
# ============================================================================

# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# TEMPLATE OVERVIEW & USAGE NOTES
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# • TEMPLATE TYPE: LANGUAGE-SPECIFIC TEMPLATE
# • PURPOSE: JavaScript-specific patterns for Docker builds
# • DESIGN PHILOSOPHY: Contains only JavaScript language artifacts (no security patterns)
# • COMBINATION GUIDANCE: Combine with common templates for complete coverage
# • SECURITY CONSIDERATIONS: Security patterns not included (use common/security.dockerignore)
# • BEST PRACTICES: Always combine with security template for production use
# • OFFICIAL SOURCES: JavaScript community patterns and Docker best practices

# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# JAVASCRIPT DEPENDENCIES & PACKAGE MANAGERS
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# JavaScript package managers and dependency directories

**/.npm/
**/.npm/_cacache/
**/.npm/_logs/
**/.pnpm-store/
**/.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

# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# JAVASCRIPT BUILD ARTIFACTS & OUTPUT
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# JavaScript build artifacts and output directories

**/.nyc_output/
**/.output/
**/build/
**/dist/
**/out/

# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# JAVASCRIPT CACHE & TEMPORARY FILES
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# JavaScript cache and temporary files

**/.cache/
**/.turbo/
*.cache
*.temp
*.tmp
.node_repl_history

# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# JAVASCRIPT LOGS & DEBUG FILES
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# JavaScript logs and debug files

**/logs/
*.log
*.log.*

# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# JAVASCRIPT CONFIGURATION & ENVIRONMENT
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# JavaScript configuration and environment files

.babelrc
.babelrc.*
.browserslistrc
.eslintignore
.eslintrc
.eslintrc.*
.jsbeautifyrc
.jscsrc
.jshintrc
.prettierignore
.prettierrc
.prettierrc.*
.stylelintignore
.stylelintrc
.stylelintrc.*
jsconfig.json

Note: This file is fetched from GitHub and cached for 7 days.