mirror of
https://github.com/jamiepine/voicebox.git
synced 2026-10-03 17:15:19 -07:00
fix: Dockerfile HuggingFace cache and generations directory permissions
Fixes #542
This commit is contained in:
committed by
capy-ai-staging[bot]
parent
86dc46b930
commit
b39e5b2de3
@@ -74,6 +74,14 @@ FROM python:3.11-slim
|
|||||||
RUN groupadd -r voicebox && \
|
RUN groupadd -r voicebox && \
|
||||||
useradd -r -g voicebox -m -s /bin/bash 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
|
WORKDIR /app
|
||||||
|
|
||||||
# Install only runtime system dependencies (gosu drops root in the entrypoint)
|
# Install only runtime system dependencies (gosu drops root in the entrypoint)
|
||||||
|
|||||||
Reference in New Issue
Block a user