feat(docker): simplify PYTHONPATH configuration and update entrypoint script to change directory before starting the application

This commit is contained in:
pacnpal
2025-01-28 21:15:59 +00:00
parent 58246b6704
commit 01c0098a73
2 changed files with 2 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ trap handle_term SIGTERM SIGINT
# Start the application
echo "Starting SimpleGuardHome server..."
PYTHONPATH=/app/src python -m simpleguardhome.main &
cd /app && PYTHONPATH=/app/src python3 -m simpleguardhome.main &
# Store child PID
child=$!