feat: add production Docker deployment

This commit is contained in:
2026-07-20 13:29:24 +08:00
parent 75abc7bfe1
commit 70e97ae8b9
5 changed files with 145 additions and 8 deletions

View File

@@ -39,10 +39,10 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
speech: speech.clone(),
summary: summary::SummaryService::new(config.summary.clone()),
};
if let Some(pool) = state.pool.clone()
&& speech.configured()
{
transcription_worker::spawn(pool, speech);
if let Some(pool) = state.pool.clone() {
if speech.configured() {
transcription_worker::spawn(pool, speech);
}
}
let app = build_app(state, config.cors_allowed_origin.as_deref())?;
let address = std::net::SocketAddr::from((config.host, config.port));