khurrameycon commited on
Commit
6f41de5
·
verified ·
1 Parent(s): ff704b5

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -0
Dockerfile CHANGED
@@ -3,6 +3,14 @@ FROM python:3.9-slim
3
  # Install system dependencies
4
  RUN apt-get update && apt-get install -y espeak-ng libsndfile1
5
 
 
 
 
 
 
 
 
 
6
  # Set working directory
7
  WORKDIR /app
8
 
 
3
  # Install system dependencies
4
  RUN apt-get update && apt-get install -y espeak-ng libsndfile1
5
 
6
+ # Set up cache directories
7
+ ENV TRANSFORMERS_CACHE=/app/cache
8
+ ENV HF_HOME=/app/cache
9
+ ENV XDG_CACHE_HOME=/app/cache
10
+
11
+ # Create cache directory and set permissions
12
+ RUN mkdir -p /app/cache && chmod -R 777 /app
13
+
14
  # Set working directory
15
  WORKDIR /app
16