saeedzou commited on
Commit
587a9f7
·
verified ·
1 Parent(s): 94cf126

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -0
Dockerfile CHANGED
@@ -8,6 +8,14 @@ RUN apt-get update && apt-get install -y \
8
 
9
  WORKDIR /app
10
 
 
 
 
 
 
 
 
 
11
  COPY requirements.txt .
12
  RUN pip install --no-cache-dir -r requirements.txt
13
 
 
8
 
9
  WORKDIR /app
10
 
11
+ # Set environment variables for writable directories
12
+ ENV MPLCONFIGDIR=/app/.config/matplotlib
13
+ ENV TRANSFORMERS_CACHE=/app/.cache/huggingface
14
+ ENV LHOTSE_TOOLS=/app/.lhotse/tools
15
+
16
+ # Create writable directories
17
+ RUN mkdir -p $MPLCONFIGDIR $TRANSFORMERS_CACHE $LHOTSE_TOOLS
18
+
19
  COPY requirements.txt .
20
  RUN pip install --no-cache-dir -r requirements.txt
21