Add version/build-date status bar to dashboard footer
Agent-Logs-Url: https://github.com/christianlouis/InboxConverge/sessions/9efbf677-2d92-487b-abae-9adf0c728f88 Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
@@ -18,6 +18,10 @@ RUN pip install --no-cache-dir -r requirements.txt
|
||||
# Copy application code
|
||||
COPY . .
|
||||
|
||||
# Inject build metadata
|
||||
ARG BUILD_DATE=""
|
||||
ENV BUILD_DATE=${BUILD_DATE}
|
||||
|
||||
# Create non-root user
|
||||
RUN useradd -m -u 1000 appuser && \
|
||||
chown -R appuser:appuser /app
|
||||
|
||||
@@ -14,6 +14,7 @@ from app.api.v1.endpoints import (
|
||||
providers,
|
||||
app_settings,
|
||||
logs,
|
||||
version,
|
||||
)
|
||||
|
||||
api_router = APIRouter()
|
||||
@@ -38,3 +39,4 @@ api_router.include_router(app_settings.router, prefix="/settings", tags=["Settin
|
||||
api_router.include_router(
|
||||
logs.router, prefix="/processing-runs", tags=["Processing Logs"]
|
||||
)
|
||||
api_router.include_router(version.router, prefix="/version", tags=["Version"])
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
"""
|
||||
Version endpoint – returns the application version and build date.
|
||||
"""
|
||||
|
||||
from fastapi import APIRouter
|
||||
|
||||
from app.core.config import settings
|
||||
|
||||
router = APIRouter()
|
||||
|
||||
|
||||
@router.get("")
|
||||
async def get_version():
|
||||
"""Return application version and build metadata."""
|
||||
return {
|
||||
"version": settings.APP_VERSION,
|
||||
"build_date": settings.BUILD_DATE or None,
|
||||
}
|
||||
@@ -29,6 +29,7 @@ class Settings(BaseSettings):
|
||||
# Application
|
||||
APP_NAME: str = "InboxConverge"
|
||||
APP_VERSION: str = "2.0.0"
|
||||
BUILD_DATE: str = ""
|
||||
APP_URL: str = "https://inboxconverge.com"
|
||||
CONTACT_EMAIL: str = "christian@inboxconverge.com"
|
||||
DEBUG: bool = False
|
||||
|
||||
Reference in New Issue
Block a user