Frameworks

Astro .dockerignore

.dockerignore for frameworks projects

View on GitHub

.dockerignore Content

# ============================================================================
# Created by https://dockerignore.com/
# COMPREHENSIVE FRAMEWORK TEMPLATE for Astro
# Website: https://astro.build/
# Repository: https://github.com/withastro/astro
# ============================================================================

# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# TEMPLATE OVERVIEW & USAGE NOTES
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# • TEMPLATE TYPE: COMPREHENSIVE FRAMEWORK TEMPLATE
# • PURPOSE: Astro 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 Astro setup
# • OFFICIAL SOURCES: Astro community patterns and best practices

# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# SECURITY & SENSITIVE DATA PROTECTION (ALWAYS FIRST!)
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# CRITICAL: Prevent sensitive data from being included in Docker images

# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# ENVIRONMENT VARIABLES & CONFIGURATION FILES
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# Environment files contain sensitive API keys, database credentials,
# and other secrets that must not be included in Docker images

.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
# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••

# Application secrets, credentials, and sensitive configuration files
**/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
database.ini
database.yml
dbconfig.xml
secrets.json
secrets.yaml
secrets.yml
tokens.*

# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# DEPENDENCIES AND PACKAGE MANAGERS
**/.npm/
**/.npm/_logs/
**/.pnpm-store/
**/.pnpm/
**/.yarn/
**/bower_components/
**/node_modules/
.npmignore
.npmrc
.npmrc.*
.yarn/install-state.gz
.yarnrc
.yarnrc.yml
npm-debug.log*
pnpm-debug.log*
yarn-error.log

# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# BUILD ARTIFACTS AND OUTPUT
**/.nyc_output/
**/.out/
**/.output/
**/build/
**/dist/
**/public/build/
.tsbuildinfo
tsconfig.*.tsbuildinfo

# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# CACHE AND TEMPORARY FILES
**/.cache/
**/.parcel-cache/
**/.turbo/
**/temp/
**/tmp/
*.cache
*.temp
*.tmp

# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# LOGS AND DEBUG FILES
**/logs/
*.log

# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# CONFIGURATION AND ENVIRONMENT
.env.testing
jsconfig.json
vitest.config.*.timestamp-*

# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# TESTING AND COVERAGE
**/.jest-cache/
**/__tests__/__snapshots__/
**/coverage/
**/test-results/

# ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# OTHER
**/.astro/
**/.aws/
**/.azure/
**/.babel-cache/
**/.bzr/
**/.cvs/
**/.dev/
**/.devcontainer/
**/.fly/
**/.gcp/
**/.git/
**/.hg/
**/.husky/
**/.netlify/
**/.nx/
**/.nx/cache/
**/.pnp/
**/.railway/
**/.render/
**/.svn/
**/.vercel/
**/__mocks__/
**/__tests__/
**/docs/
**/documentation/
**/examples/
**/jest-cache/
**/samples/
**/test/
**/tests/
*.7z
*.bak
*.old
*.orig
*.rar
*.save
*.swo
*.swp
*~
._*
.astro/content.config.*.js
.astro/content.config.*.mjs
.astro/content.config.*.ts
.astro/content.d.ts
.astro/types.d.ts
.babelrc
.babelrc.*
.browserslistrc
.DS_Store
.DS_Store?
.eslintcache
.eslintignore
.eslintrc
.eslintrc.*
.gitattributes
.gitignore
.gitmodules
.jsbeautifyrc
.jscsrc
.jshintrc
.pnp.cjs
.pnp.js
.pnp.loader.mjs
.prettiercache
.prettierignore
.prettierrc
.prettierrc.*
.Spotlight-V100
.stylelintcache
.stylelintignore
.stylelintrc
.stylelintrc.*
.Trashes
astro.config.*.js
astro.config.*.mjs
astro.config.*.ts
cypress.config.*
desktop.ini
ehthumbs.db
jest.config.*
playwright.config.*
pnpm-workspace.yaml
Thumbs.db
vitest.config.*
vitest.config.*.js
vitest.config.*.mjs
vitest.config.*.ts

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