feat(docker): enhance .dockerignore for better file management; update Dockerfile for improved package verification and debugging; refine entrypoint script checks

This commit is contained in:
pacnpal
2025-01-28 23:43:17 -05:00
parent c0bc1ffbf8
commit 170d8a997b
3 changed files with 92 additions and 84 deletions

View File

@@ -1,7 +1,40 @@
# Ignore everything by default
*
# Version control
.git/
.gitignore
.gitattributes
# Explicitly allow required files
# Cache and temporary files
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
*.egg
*.egg-info/
.installed.cfg
.pytest_cache/
.coverage
htmlcov/
# Environment and IDE
venv/
env/
.env
.idea/
.vscode/
*.swp
*.swo
# Build artifacts
build/
dist/
wheels/
# Project specific
rules_backup/
# Keep these files
!src/
!src/simpleguardhome/
!src/simpleguardhome/**
!requirements.txt
@@ -10,15 +43,4 @@
!MANIFEST.in
!LICENSE
!README.md
!docker-entrypoint.sh
# Still exclude these even if in allowed directories
**/__pycache__
**/*.pyc
**/*.pyo
**/*.pyd
**/.Python
**/*.so
**/*.egg
**/*.egg-info
**/*.egg-info/
!docker-entrypoint.sh