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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -10,11 +10,12 @@ 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
 
10
 
11
  # Set environment variables for writable directories
12
  ENV MPLCONFIGDIR=/app/.config/matplotlib
13
+ ENV HF_HOME=/app/.cache/huggingface
14
  ENV LHOTSE_TOOLS=/app/.lhotse/tools
15
 
16
+ # Create writable directories and set permissions
17
+ RUN mkdir -p $MPLCONFIGDIR $HF_HOME $LHOTSE_TOOLS && \
18
+ chmod -R 777 $MPLCONFIGDIR $HF_HOME $LHOTSE_TOOLS
19
 
20
  COPY requirements.txt .
21
  RUN pip install --no-cache-dir -r requirements.txt