refactor(docker): restructure Dockerfile to copy source code directory and create rules_backup volume

This commit is contained in:
pacnpal
2025-01-29 09:42:37 -05:00
parent 6baa26eb80
commit ceee425fab
2 changed files with 10 additions and 4 deletions

View File

@@ -3,5 +3,5 @@ set -e
echo "[$(date '+%Y-%m-%d %H:%M:%S')] Starting SimpleGuardHome..."
# Start the application
exec python3 -m uvicorn simpleguardhome.main:app --host 0.0.0.0 --port 8000
# Run the app with src in Python path to find the module
PYTHONPATH=/app/src exec python3 -m uvicorn simpleguardhome.main:app --host 0.0.0.0 --port 8000