Frameworks

Alpine.js .dockerignore

.dockerignore for frameworks projects

View on GitHub

.dockerignore Content

# ============================================================================
# Created by https://dockerignore.com/
# COMPREHENSIVE FRAMEWORK TEMPLATE for Alpine.js
# Website: https://alpinejs.dev/
# Repository: https://github.com/alpinejs/alpine
# ============================================================================

# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# TEMPLATE OVERVIEW & USAGE NOTES
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# • TEMPLATE TYPE: COMPREHENSIVE FRAMEWORK TEMPLATE
# • PURPOSE: Alpine.js web framework specific ignore patterns
# • DESIGN PHILOSOPHY: Self-contained with all necessary patterns including security
# • COMBINATION GUIDANCE: Use standalone - no need to combine with other templates
# • SECURITY CONSIDERATIONS: Includes security patterns for .env files and credentials
# • BEST PRACTICES: Review before use, test with your specific Alpine.js setup
# • OFFICIAL SOURCES: Alpine.js community patterns and best practices

# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# • PURPOSE: Docker ignore patterns for Alpine.js lightweight JavaScript framework projects
# • DESIGN PHILOSOPHY: Self-contained with all necessary patterns including security,
#   dependencies, and framework-specific artifacts
# • COMBINATION GUIDANCE: Combine with nodejs.dockerignore for complete coverage
# • SECURITY CONSIDERATIONS: Security patterns placed first for maximum protection
# • BEST PRACTICES: Alpine.js is often used with other frameworks - combine appropriately

# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# SECURITY & SENSITIVE DATA PROTECTION (ALWAYS FIRST!)
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••

# CRITICAL: Prevent sensitive data from being included in Docker images
# ENVIRONMENT VARIABLES & CONFIGURATION FILES
.env
.env.*
.env.*.local
.env.development
.env.development.local
.env.example
.env.local
.env.production
.env.production.local
.env.sample
.env.staging
.env.staging.local
.env.template
.env.test
.env.test.local

# APPLICATION SECRETS & CREDENTIALS
**/config/credentials.*
**/config/secrets.*
**/keys/
**/passwords/
**/private/
**/secrets/
*.auth
*.authz
*.password
*.secret
*.secrets
*.token
*_tokens
*password*
apikeys.*
appsettings.Development.json
appsettings.Local.json
appsettings.Staging.json
connectionstrings.config
credentials
credentials.*
credentials.json
credentials.yaml
credentials.yml
id_rsa
id_rsa.pub
jwt-secret
jwt-secret.*
oauth-credentials.*
passwd
private-key.pem
private.pem
secret
secret.*
secrets.json
secrets.yaml
secrets.yml
session-secret
ssh-key
ssh-key.pem
ssl-cert.*
ssl-key.*

# SECURITY CERTIFICATES & KEYS
*.cer
*.crt
*.csr
*.der
*.key
*.p12
*.p7b
*.p7c
*.pem
*.pfx
*.spc
*.sst

# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# ALPINE.JS-SPECIFIC PATTERNS
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••

# Alpine.js typically doesn't have specific build directories
# but may be used with build tools
**/build/
**/dist/

# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# DEPENDENCY MANAGEMENT & PACKAGE MANAGERS
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••

# Node.js package managers
**/.npm/
**/.pnpm-store/
**/.yarn/
**/node_modules/
**/npm-debug.log*
**/yarn-debug.log*
**/yarn-error.log*
.npm
.npmrc
.npmrc.*
.nuxt
pnpm-debug.log*

# Bun package manager (modern alternative)
**/.bun-install/
**/.bun/

# Deno runtime (alternative to Node.js)
**/.deno/
**/deno.lock

# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# DEVELOPMENT & RUNTIME ARTIFACTS
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••

# Build output directories
**/tmp/

# Log files
**/logs/
*.log

# Runtime directories
**/run/
**/var/run/

# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# BUILD ARTIFACTS AND OUTPUT
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••

# TypeScript compilation
**/*.tsbuildinfo
**/.tsc-tmp/
**/.tsc-working/
**/.tsc/

# Build output directories
**/coverage/
**/out/

# Compiled binaries

# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# CACHE AND TEMPORARY FILES
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••

# General cache directories
**/.cache/
**/.eslintcache
**/.next/cache/
**/.parcel-cache/
**/.swc/
**/.turbo/
**/.vite/
**/cache/

# Build tool caches
**/.esbuild/
**/.nx/

# Temporary files
**/temp/
*.temp
*.tmp

# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# TESTING AND QUALITY ASSURANCE
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••

# Test output and reports
**/.nyc_output/
**/.test-output/
**/nyc_output/
**/test-output/
.audit.out
.benchmark.out
.performance.out
.profile.out
.profiling.out
.scan.out
.security.out

# Test coverage
**/lcov.info

# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# EDITOR AND IDE CONFIGURATION
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••

# IDE-specific files
**/*.swo
**/*.swp
**/.idea/
**/.vscode/
*~
.DS_Store
.ropeproject
__pycache__

# Editor configuration
.editorconfig
.project

# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# VERSION CONTROL AND COLLABORATION
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••

# Git and version control
.git
.gitattributes
.gitignore
.gitmodules
.gitreview

# Collaboration tools
.hg
.svn
CVS

# ============================================================================
# TEMPLATE VALIDATION & BEST PRACTICES
# ============================================================================
# 1. Validate with: docker build --no-cache .
# 2. Check context size reduction: docker build --no-cache . 2>&1 | grep "context"
# 3. Test pattern effectiveness with Alpine.js project
# 4. Combine with node_js.dockerignore for complete Node.js ecosystem coverage
# 5. Alpine.js is lightweight - may need combination with other framework templates
# 6. Review security patterns regularly for compliance

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