mgbam commited on
Commit
ac03705
·
verified ·
1 Parent(s): 58f284c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -0
Dockerfile CHANGED
@@ -10,6 +10,11 @@ RUN pip install --upgrade pip && pip install -r requirements.txt
10
 
11
  COPY . /app
12
 
 
 
 
 
 
13
  EXPOSE 7860
14
 
15
  CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
 
10
 
11
  COPY . /app
12
 
13
+ # Fix Streamlit and Matplotlib permission issues
14
+ ENV STREAMLIT_CONFIG_DIR=/app/.streamlit
15
+ ENV MPLCONFIGDIR=/app/.config/matplotlib
16
+ RUN mkdir -p /app/.streamlit /app/.config/matplotlib
17
+
18
  EXPOSE 7860
19
 
20
  CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]