darshankr commited on
Commit
d50aebf
·
verified ·
1 Parent(s): 623ec04

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -2
Dockerfile CHANGED
@@ -24,8 +24,15 @@ RUN cd /app/Indic-TTS/Trainer && \
24
  cd .. && \
25
  python3 -m pip install -r requirements.txt
26
 
27
- # Install Gradio
28
- RUN python3 -m pip install gradio
 
 
 
 
 
 
 
29
 
30
  # Set working directory back to /app
31
  WORKDIR /app
 
24
  cd .. && \
25
  python3 -m pip install -r requirements.txt
26
 
27
+ # Install Gradio and upgrade to the latest version
28
+ RUN python3 -m pip install --upgrade gradio
29
+
30
+ # Create a writable directory for Gradio's flagging
31
+ RUN mkdir -p /app/flagged && \
32
+ chmod -R 777 /app/flagged
33
+
34
+ # Set the MPLCONFIGDIR environment variable to a writable directory
35
+ ENV MPLCONFIGDIR=/app/.config/matplotlib
36
 
37
  # Set working directory back to /app
38
  WORKDIR /app