Fix: writable data dir, HF cache on data volume, and install SoX

This commit is contained in:
LaurinceG4N0
2026-10-04 00:01:41 +00:00
committed by capy-ai-staging[bot]
parent 49b55fcb2a
commit 1d8d324051
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -18,4 +18,10 @@ done
mkdir -p /home/voicebox/.cache/huggingface
chown voicebox:voicebox /home/voicebox/.cache /home/voicebox/.cache/huggingface
# Ensure the mounted data volume is writable by the non-root user.
# The Dockerfile chowns /app/data at build time, but a runtime volume mount
# re-creates it owned by root, so fix ownership here (still root) before
# dropping privileges.
chown -R voicebox:voicebox /app/data || true
exec gosu voicebox "$@"