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
+1
View File
@@ -89,6 +89,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
ffmpeg \
curl \
gosu \
sox \
&& rm -rf /var/lib/apt/lists/*
# Copy installed Python packages from builder stage
+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 "$@"