From 1a9be1d4c05c077ed92a17bc9650a03a33ce3ec5 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 24 Oct 2025 18:05:14 +0300 Subject: [PATCH] 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 --- backend/.dockerignore | 57 ++++++++++++++++++++++++++++++++++++ frontend/.dockerignore | 58 +++++++++++++++++++++++++++++++++++++ vector-search/.dockerignore | 57 ++++++++++++++++++++++++++++++++++++ 3 files changed, 172 insertions(+) create mode 100644 backend/.dockerignore create mode 100644 frontend/.dockerignore create mode 100644 vector-search/.dockerignore diff --git a/backend/.dockerignore b/backend/.dockerignore new file mode 100644 index 0000000..ce70251 --- /dev/null +++ b/backend/.dockerignore @@ -0,0 +1,57 @@ +# 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/ diff --git a/frontend/.dockerignore b/frontend/.dockerignore new file mode 100644 index 0000000..19d2b10 --- /dev/null +++ b/frontend/.dockerignore @@ -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/ diff --git a/vector-search/.dockerignore b/vector-search/.dockerignore new file mode 100644 index 0000000..ce70251 --- /dev/null +++ b/vector-search/.dockerignore @@ -0,0 +1,57 @@ +# 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/