This commit is contained in:
Chu Văn Hải committed 2025-12-05 11:18:26 +07:00
commit fb6af905cd
30 files changed
+8653

No files matched your search

+378
View File
@@ -0,0 +1,378 @@
# ============================================================================
# .dockerignore - Optimize Docker Build Context
# ============================================================================
# This file excludes unnecessary files from Docker build context to:
# - Reduce build time
# - Minimize image size
# - Improve cache efficiency
# - Enhance security (exclude sensitive files)
# ============================================================================
# ============================================================================
# VERSION CONTROL
# ============================================================================
.git
.gitignore
.gitattributes
.gitmodules
.github/
.gitlab/
.gitlab-ci.yml
.gitlab-ci.include.yml
# ============================================================================
# NODE.JS & PACKAGE MANAGERS
# ============================================================================
# Dependencies (will be installed in container)
node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.npm/
.yarn/
.pnpm/
.pnpm-store/
pnpm-debug.log*
# Package manager lock files (keep these for consistent installs)
# NOTE: Uncomment if you want to exclude lock files (not recommended)
# package-lock.json
# yarn.lock
# pnpm-lock.yaml
# Node.js runtime files
.node_repl_history
.node_tmp/
# ============================================================================
# FRAMEWORK-SPECIFIC BUILD OUTPUTS
# ============================================================================
# Next.js
.next/
out/
.vercel/
# React.js / Vite
build/
dist/
# NestJS
dist/
# Angular
dist/
.angular/
# Nuxt.js
.nuxt/
.output/
# SvelteKit
.svelte-kit/
# ============================================================================
# DEVELOPMENT & TESTING
# ============================================================================
# Test coverage
coverage/
.coverage/
.nyc_output/
.jest/
# Testing
*.test.js.snap
__tests__/
test/
tests/
spec/
specs/
# Storybook
.storybook/
storybook-static/
# Cypress
cypress/videos/
cypress/screenshots/
cypress/downloads/
# Playwright
playwright-report/
test-results/
# ============================================================================
# ENVIRONMENT & CONFIGURATION
# ============================================================================
# Environment files (security risk)
.env
.env.*
!.env.example
!.env.template
# Local environment
.local
.cache/
# Configuration files
.eslintcache
.stylelintcache
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/
# TypeScript
*.tsbuildinfo
.tscache/
# ============================================================================
# CI/CD & DEPLOYMENT
# ============================================================================
# CI/CD files
ci/
.circleci/
.travis.yml
.appveyor.yml
azure-pipelines.yml
buildspec.yml
cloudbuild.yaml
# Docker
Dockerfile.*
!Dockerfile
docker-compose*.yml
.dockerignore
# Kubernetes
k8s/
kubernetes/
*.yaml
*.yml
!package.json
!package-lock.json
!yarn.lock
!pnpm-lock.yaml
# Terraform
*.tf
*.tfstate
*.tfvars
.terraform/
# Ansible
inventory/
playbooks/
roles/
ansible.cfg
requirements.yml
# Helm
charts/
helm/
# ============================================================================
# DEVELOPMENT TOOLS & EDITORS
# ============================================================================
# IDE files
.vscode/
.idea/
*.swp
*.swo
*~
# Vim
.vim/
.vimrc
# Emacs
.emacs.d/
.emacs
# Sublime Text
*.sublime-*
# WebStorm
.webstorm/
# VS Code extensions
.vscode-test/
# ============================================================================
# OPERATING SYSTEM
# ============================================================================
# macOS
.DS_Store
.AppleDouble
.LSOverride
Icon?
._*
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent
# Windows
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db
*.stackdump
[Dd]esktop.ini
$RECYCLE.BIN/
*.cab
*.msi
*.msix
*.msm
*.msp
*.lnk
# Linux
*~
.fuse_hidden*
.directory
.Trash-*
.nfs*
# ============================================================================
# LOGS & TEMPORARY FILES
# ============================================================================
# Logs
logs/
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*
# Runtime data
pids/
*.pid
*.seed
*.pid.lock
# Temporary folders
tmp/
temp/
.tmp/
.temp/
# ============================================================================
# DOCUMENTATION & ASSETS
# ============================================================================
# Documentation
docs/
documentation/
README*.md
CHANGELOG*.md
CONTRIBUTING*.md
LICENSE*
SECURITY*.md
CODE_OF_CONDUCT*.md
# Design assets (large files)
*.psd
*.ai
*.sketch
*.fig
*.xd
# Media files (if not needed in production)
# *.png
# *.jpg
# *.jpeg
# *.gif
# *.svg
# *.ico
# *.webp
# ============================================================================
# MONITORING & ANALYTICS
# ============================================================================
# Bundle analyzers
.webpack-bundle-analyzer/
bundle-analyzer-report.html
# Performance monitoring
.lighthouse/
lighthouse-report.html
# ============================================================================
# SECURITY & SECRETS
# ============================================================================
# Security scan results
security-audit.json
vulnerability-report.json
# Certificates and keys
*.pem
*.key
*.crt
*.cert
*.p12
*.pfx
# Secrets
secrets/
.secrets/
# ============================================================================
# BACKUP & ARCHIVE
# ============================================================================
# Backup files
*.bak
*.backup
*.old
*.orig
# Archive files
*.tar
*.tar.gz
*.zip
*.rar
*.7z
# ============================================================================
# CUSTOM PROJECT EXCLUSIONS
# ============================================================================
# Add your project-specific exclusions here
# Examples:
# assets/raw/
# scripts/dev/
# mock-data/
# Generated files
# auto-generated/
# generated/
# Large datasets
# data/
# datasets/
# ============================================================================
# KEEP THESE FILES (Explicitly include important files)
# ============================================================================
# Ensure these files are included even if excluded above
!package.json
!yarn.lock
!package-lock.json
!pnpm-lock.yaml
!tsconfig.json
!next.config.js
!nuxt.config.js
!vite.config.js
!svelte.config.js
!tailwind.config.js
!postcss.config.js
!babel.config.js
!webpack.config.js
!rollup.config.js
!jest.config.js
!cypress.config.js
!playwright.config.js
# ============================================================================
# END OF .dockerignore
# ============================================================================