From 722883ab4a4583b799ce8bfd0cfad70b4b89daf9 Mon Sep 17 00:00:00 2001 From: salmonik Date: Wed, 28 Oct 2026 12:00:03 +0100 Subject: docker: bake espeak-ng data for Piper TTS espeak-rs-sys installs espeak-ng-data into the build tree and compiles that path in as the default, so the runtime image failed with 'phontab: No such file or directory'. Copy the data from the builder to /usr/share and point PIPER_ESPEAKNG_DATA_DIRECTORY there; compose overrides the host path from .env. Also trim trailing slashes from Copyparty base URLs, document that env_file changes need --force-recreate, and clean inline comments in .env.example. --- src/copyparty/mod.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/copyparty') diff --git a/src/copyparty/mod.rs b/src/copyparty/mod.rs index a9f7d01..d3620b2 100644 --- a/src/copyparty/mod.rs +++ b/src/copyparty/mod.rs @@ -147,8 +147,9 @@ pub struct UploadResponse { impl CopypartyClient { pub fn new(base_url: String, upload_url: String, password: Option) -> Self { Self { - base_url, - upload_url, + // A trailing slash would produce `//` when a path is appended. + base_url: base_url.trim_end_matches('/').to_string(), + upload_url: upload_url.trim_end_matches('/').to_string(), password, client: Client::new(), } -- cgit v1.2.3