refactor(docker): update Dockerfile and entrypoint script for improved package verification and health check command

This commit is contained in:
pacnpal
2025-01-29 12:27:45 -05:00
parent 65a3429b7a
commit 5430ec6ad4
2 changed files with 6 additions and 3 deletions

View File

@@ -3,9 +3,12 @@ set -e
echo "[$(date '+%Y-%m-%d %H:%M:%S')] Starting SimpleGuardHome..."
# Ensure proper Python path
export PYTHONPATH="/app:${PYTHONPATH:-}"
# Verify package can be imported
echo "Verifying package installation..."
python3 -c "import simpleguardhome" || exit 1
python3 -c "import simpleguardhome; print('Package found at:', simpleguardhome.__file__)"
# Start the application
echo "Starting SimpleGuardHome server..."