mirror of
https://github.com/jamiepine/voicebox.git
synced 2026-10-03 17:15:19 -07:00
Fix: writable data dir, HF cache on data volume, and install SoX
This commit is contained in:
committed by
capy-ai-staging[bot]
parent
49b55fcb2a
commit
1d8d324051
@@ -89,6 +89,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
ffmpeg \
|
ffmpeg \
|
||||||
curl \
|
curl \
|
||||||
gosu \
|
gosu \
|
||||||
|
sox \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Copy installed Python packages from builder stage
|
# Copy installed Python packages from builder stage
|
||||||
|
|||||||
@@ -18,4 +18,10 @@ done
|
|||||||
mkdir -p /home/voicebox/.cache/huggingface
|
mkdir -p /home/voicebox/.cache/huggingface
|
||||||
chown voicebox:voicebox /home/voicebox/.cache /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 "$@"
|
exec gosu voicebox "$@"
|
||||||
|
|||||||
Reference in New Issue
Block a user