fix directory does not exist
Browse files- Dockerfile +4 -0
Dockerfile
CHANGED
|
@@ -47,6 +47,10 @@ COPY --chown=pockettts:pockettts server.py ./
|
|
| 47 |
# Create logs directory
|
| 48 |
RUN mkdir -p /app/logs && chown pockettts:pockettts /app/logs
|
| 49 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
# Switch to non-root user
|
| 51 |
USER pockettts
|
| 52 |
|
|
|
|
| 47 |
# Create logs directory
|
| 48 |
RUN mkdir -p /app/logs && chown pockettts:pockettts /app/logs
|
| 49 |
|
| 50 |
+
# Create HuggingFace cache directory (for volume mount)
|
| 51 |
+
RUN mkdir -p /home/pockettts/.cache/huggingface && \
|
| 52 |
+
chown -R pockettts:pockettts /home/pockettts/.cache
|
| 53 |
+
|
| 54 |
# Switch to non-root user
|
| 55 |
USER pockettts
|
| 56 |
|