Add .dockerignore files to exclude unnecessary files from Docker images

- Exclude .cursor/, docs/, .git/ from Docker builds
- Reduce image size and improve security
- Prevent local development files from being included in production images
This commit is contained in:
2025-10-24 18:05:14 +03:00
parent e574715349
commit 1a9be1d4c0
3 changed files with 172 additions and 0 deletions

58
frontend/.dockerignore Normal file
View File

@@ -0,0 +1,58 @@
# Copyright (c) 2024-2025 Тарабанов Александр Викторович
# All rights reserved.
# This software is proprietary and confidential.
# For licensing inquiries: info@hb3-accelerator.com
# Исключить из Docker образа:
# Редакторы и IDE
.cursor/
.vscode/
.idea/
*.swp
*.swo
*~
# Документация
docs/
*.md
README*
# Git
.git/
.gitignore
# Зависимости (будут установлены в контейнере)
node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Локальные файлы
.env.local
.env.development.local
.env.test.local
.env.production.local
# Временные файлы
*.log
*.tmp
*.temp
.DS_Store
Thumbs.db
# Тестовые файлы
test/
tests/
__tests__/
*.test.js
*.spec.js
# Кэш и сборка
.cache/
.parcel-cache/
.next/
.nuxt/
dist/
build/
coverage/