release: default to Web UI in Docker image, add HEALTHCHECK and APP_VERSION; CI smoke test; compose docs and dockerhub compose file

This commit is contained in:
matt 2025-08-28 20:40:19 -07:00
parent 9357a04541
commit be672ac5d2
6 changed files with 96 additions and 4 deletions

20
entrypoint.sh Normal file
View file

@ -0,0 +1,20 @@
#!/usr/bin/env sh
set -e
# Always operate from the code directory for imports to work
cd /app/code || exit 1
# Select mode: default to Web UI
MODE="${APP_MODE:-web}"
if [ "$MODE" = "cli" ]; then
# Run the CLI (interactive menu; use DECK_MODE=headless for non-interactive)
exec python main.py
fi
# Web UI (FastAPI via uvicorn)
HOST="${HOST:-0.0.0.0}"
PORT="${PORT:-8080}"
WORKERS="${WORKERS:-1}"
exec uvicorn web.app:app --host "$HOST" --port "$PORT" --workers "$WORKERS"