feat(docker): overhaul Dockerfile and .dockerignore for enhanced backup, verification, and monitoring; implement health checks and improved package management

This commit is contained in:
pacnpal
2025-01-29 00:03:24 -05:00
parent 170d8a997b
commit 216d8137f8
3 changed files with 416 additions and 162 deletions

View File

@@ -1,46 +1,50 @@
# Version control
.git/
.gitignore
.gitattributes
# ULTIMATE SAFETY IGNORE FILE V9000
# DO NOT MODIFY WITHOUT LEVEL 9 CLEARANCE
# Cache and temporary files
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
*.egg
*.egg-info/
.installed.cfg
.pytest_cache/
.coverage
htmlcov/
# FIRST: IGNORE EVERYTHING (SAFEST OPTION)
*
# Environment and IDE
venv/
env/
.env
.idea/
.vscode/
*.swp
*.swo
# Build artifacts
build/
dist/
wheels/
# Project specific
rules_backup/
# Keep these files
# THEN: CAREFULLY ALLOW ONLY ESSENTIAL FILES
# Main source files (REQUIRED)
!src/
!src/simpleguardhome/
!src/simpleguardhome/**
!src/simpleguardhome/**/*
# Critical system files (REQUIRED)
!requirements.txt
!setup.py
!pyproject.toml
!MANIFEST.in
!LICENSE
!README.md
!docker-entrypoint.sh
!docker-entrypoint.sh
# VERIFICATION: Required files that MUST exist:
# - src/simpleguardhome/__init__.py
# - src/simpleguardhome/main.py
# - src/simpleguardhome/adguard.py
# - src/simpleguardhome/config.py
# - src/simpleguardhome/templates/index.html
# - src/simpleguardhome/favicon.ico
# SAFETY: Never include these files even if allowed above
**/__pycache__/
**/*.pyc
**/*.pyo
**/*.pyd
**/*.so
**/*.egg
**/*.egg-info/
**/.DS_Store
# DOUBLE VERIFICATION: These paths must be blocked
.git/
.env
venv/
*.log
temp/
cache/
# BACKUP PATTERNS: Keep these clean
**/backup*/
**/rescue*/
**/emergency*/
# FINAL VERIFICATION:
# If this file is modified, system will verify
# all paths during container build