celik-muhammed commited on
Commit
28ca5a7
·
verified ·
1 Parent(s): 6721581

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -0
Dockerfile CHANGED
@@ -2,9 +2,14 @@ FROM python:3.11-slim
2
 
3
  # Set environment variables to avoid writing to root
4
  ENV HOME=/app
 
 
5
  # Optional: Disable Usage Stats (telemetry) for Privacy / Stability
6
  ENV STREAMLIT_DISABLE_USAGE_STATS=true
7
 
 
 
 
8
  WORKDIR /app
9
 
10
  # Install dependencies
 
2
 
3
  # Set environment variables to avoid writing to root
4
  ENV HOME=/app
5
+ ENV MPLCONFIGDIR=/tmp/.config/matplotlib
6
+ ENV STREAMLIT_HOME=/tmp/.streamlit
7
  # Optional: Disable Usage Stats (telemetry) for Privacy / Stability
8
  ENV STREAMLIT_DISABLE_USAGE_STATS=true
9
 
10
+ RUN mkdir -p /app/.streamlit /app/.config/matplotlib \
11
+ && chmod -R 777 /app/.streamlit /app/.config
12
+
13
  WORKDIR /app
14
 
15
  # Install dependencies