Refactor Docker configuration and improve database initialization

- Updated `.dockerignore` to streamline ignored files and directories, focusing on essential components.
- Removed obsolete `Dockerfile.bot` to simplify the build process.
- Enhanced `run_helper.py` with a new `init_db` function to initialize the SQLite database if it doesn't exist, improving setup reliability.
- Removed the `/status` endpoint from `server_prometheus.py` to clean up unused functionality and improve code clarity.
This commit is contained in:
2025-09-16 18:43:05 +03:00
parent 31e29cdec0
commit a0a7a47c8d
5 changed files with 93 additions and 292 deletions

View File

@@ -1,95 +1,29 @@
# Python
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
# .dockerignore
.*
!.gitignore
# Virtual environments
# Исключаем тяжелые папки
voice_users/
logs/
.venv/
__pycache__
*.pyc
*.pyo
*.pyd
# Исключаем файлы БД (они создаются при запуске)
database/*.db
database/*.db-*
# Служебные файлы
Dockerfile
docker-compose*
README.md
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/
*.log
# IDE
.vscode/
.idea/
*.swp
*.swo
*~
# OS
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
# Git
.git/
.gitignore
# Logs
logs/*.log
# Database
*.db
*.db-shm
*.db-wal
# Tests
test_*.py
.pytest_cache/
# Documentation
*.md
tests/
test/
docs/
# Docker
Dockerfile*
docker-compose*.yml
.dockerignore
# Development files
*.sh
# Stickers and media
Stick/
# Temporary files
*.tmp
*.temp
.cache/
# Backup files
*.bak
*.backup
# Environment files
.env*
!.env.example
# Monitoring configs (will be mounted)
prometheus.yml
.idea/
.vscode/