mirror of
https://github.com/jamiepine/voicebox.git
synced 2026-09-19 06:40:38 -07:00
Add Docker support and update dependencies
- Introduced Docker support with CPU-only and GPU-enabled configurations via Dockerfiles and docker-compose files. - Added a .dockerignore file to exclude unnecessary files from Docker images. - Updated bun.lock and package.json to include new dependencies for icon handling. - Enhanced README with Docker usage instructions and deployment options. - Refactored components to utilize new icon libraries for improved UI consistency.
This commit is contained in:
+12
-4
@@ -59,10 +59,8 @@ app.add_middleware(
|
||||
# ROOT & HEALTH ENDPOINTS
|
||||
# ============================================
|
||||
|
||||
@app.get("/")
|
||||
async def root():
|
||||
"""Root endpoint."""
|
||||
return {"message": "voicebox API", "version": __version__}
|
||||
# Root endpoint removed - web UI served at / instead
|
||||
# API info available at /health
|
||||
|
||||
|
||||
@app.post("/shutdown")
|
||||
@@ -1849,6 +1847,16 @@ async def get_active_tasks():
|
||||
)
|
||||
|
||||
|
||||
# ============================================
|
||||
# WEB UI STATIC FILES
|
||||
# ============================================
|
||||
|
||||
# Serve web UI at root if dist directory exists
|
||||
_web_dist_path = Path(__file__).parent.parent / "web" / "dist"
|
||||
if _web_dist_path.exists():
|
||||
app.mount("/", StaticFiles(directory=str(_web_dist_path), html=True), name="web")
|
||||
|
||||
|
||||
# ============================================
|
||||
# STARTUP & SHUTDOWN
|
||||
# ============================================
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
# Provider checksums - embedded at build time for security
|
||||
# This file is auto-generated during CI builds
|
||||
# In development, checksums are empty (verification is skipped)
|
||||
|
||||
PROVIDER_CHECKSUMS = {
|
||||
# Populated during release builds with SHA256 checksums of provider binaries
|
||||
# Example:
|
||||
# "tts-provider-pytorch-cpu-windows.exe": "abc123...",
|
||||
# "tts-provider-pytorch-cuda-windows.exe": "def456...",
|
||||
# "tts-provider-pytorch-cuda-linux": "789xyz...",
|
||||
}
|
||||
Reference in New Issue
Block a user