fix: Dockerfile HuggingFace cache and generations directory permissions

Fixes #542
This commit is contained in:
virtuallyunknown
2026-10-04 00:01:41 +00:00
committed by capy-ai-staging[bot]
parent 86dc46b930
commit b39e5b2de3
+8
View File
@@ -74,6 +74,14 @@ FROM python:3.11-slim
RUN groupadd -r voicebox && \
useradd -r -g voicebox -m -s /bin/bash voicebox
# Create HuggingFace cache directory for the named volume
RUN mkdir -p /home/voicebox/.cache/huggingface \
&& chown -R voicebox:voicebox /home/voicebox/.cache/huggingface
# Create voice generations directory for the named volume
RUN mkdir -p /app/data/generations \
&& chown -R voicebox:voicebox /app/data/generations
WORKDIR /app
# Install only runtime system dependencies (gosu drops root in the entrypoint)