mod: ignore
This commit is contained in:
39
.dockerignore
Normal file
39
.dockerignore
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
# Игнорируемые файлы для Docker сборки
|
||||||
|
# Позволяют уменьшить размер контекста сборки и не тащить мусор в контейнер
|
||||||
|
|
||||||
|
# Git
|
||||||
|
.git
|
||||||
|
.gitignore
|
||||||
|
|
||||||
|
# Python / Poetry
|
||||||
|
__pycache__
|
||||||
|
*.pyc
|
||||||
|
*.pyo
|
||||||
|
*.pyd
|
||||||
|
.Python
|
||||||
|
env/
|
||||||
|
venv/
|
||||||
|
.venv/
|
||||||
|
# poetry.lock - ВАЖНО: Мы НЕ игнорируем lock-файл! Он нужен для воспроизводимой сборки.
|
||||||
|
|
||||||
|
# Django
|
||||||
|
*.log
|
||||||
|
local_settings.py
|
||||||
|
.env # Секреты не должны попадать в образ!
|
||||||
|
.env.local
|
||||||
|
db.sqlite3 # Не копируем локальную базу на этапе сборки, она должна быть в volume!
|
||||||
|
db.sqlite3-journal
|
||||||
|
database/ # Исключаем папку с базой из образа. В продакшене она монтируется как volume.
|
||||||
|
|
||||||
|
# Static / Media
|
||||||
|
# public/static/ # Исходники статики нужны collectstatic
|
||||||
|
public/media # Медиа файлы НЕ нужны в образе, они монтируются как volume
|
||||||
|
|
||||||
|
# IDE
|
||||||
|
.idea
|
||||||
|
.vscode
|
||||||
|
*.swp
|
||||||
|
*.swo
|
||||||
|
|
||||||
|
# Mac OS и Synology
|
||||||
|
.DS_Store
|
||||||
4
.gitignore
vendored
4
.gitignore
vendored
@@ -345,12 +345,10 @@ cython_debug/
|
|||||||
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
||||||
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
||||||
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
||||||
#.idea/
|
.idea/
|
||||||
|
|
||||||
# База данных SQLite
|
# База данных SQLite
|
||||||
# Никогда не копировать локальную базу в образ!
|
# Никогда не копировать локальную базу в образ!
|
||||||
db.sqlite3
|
|
||||||
db.sqlite3-journal
|
|
||||||
db.sqlite3-shm
|
db.sqlite3-shm
|
||||||
db.sqlite3-wal
|
db.sqlite3-wal
|
||||||
*.sqlite3
|
*.sqlite3
|
||||||
|
|||||||
Reference in New Issue
Block a user