From b39e5b2de32fdf0c81f3fabe4335c9a8b814a52c Mon Sep 17 00:00:00 2001 From: virtuallyunknown Date: Sun, 9 Aug 2026 15:38:57 +0300 Subject: [PATCH] fix: Dockerfile HuggingFace cache and generations directory permissions Fixes #542 --- Dockerfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Dockerfile b/Dockerfile index e1340a2f..f31802dc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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)