feat(docker): enhance package installation verification and streamline entrypoint script

This commit is contained in:
pacnpal
2025-01-28 21:29:23 +00:00
parent 01c0098a73
commit dfbe143d7d
3 changed files with 12 additions and 10 deletions

View File

@@ -12,9 +12,13 @@ handle_term() {
# Set up signal handlers
trap handle_term SIGTERM SIGINT
# Verify package can be imported
echo "Verifying package installation..."
python3 -c "import simpleguardhome" || exit 1
# Start the application
echo "Starting SimpleGuardHome server..."
cd /app && PYTHONPATH=/app/src python3 -m simpleguardhome.main &
exec python3 -m simpleguardhome.main
# Store child PID
child=$!