mirror of
https://github.com/pacnpal/simpleguardhome.git
synced 2025-12-20 04:21:13 -05:00
refactor(docker): update Dockerfile and entrypoint script for improved package verification and health check command
This commit is contained in:
@@ -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..."
|
||||
|
||||
Reference in New Issue
Block a user