celik-muhammed commited on
Commit
e987c8a
·
verified ·
1 Parent(s): b2acd1e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -3,6 +3,9 @@ FROM python:3.11-slim
3
 
4
  # Set environment variables to avoid writing to root
5
  # Optional: Disable Usage Stats (telemetry) for Privacy / Stability
 
 
 
6
  ENV STREAMLIT_DISABLE_USAGE_STATS=true
7
 
8
  # Set working directory inside container
@@ -10,7 +13,7 @@ WORKDIR /app
10
 
11
  # Ensure /app and cache/config directories exist with proper permissions
12
  RUN chown -R root:root /app && \
13
- mkdir -p /root/.cache /root/.config /root/.streamlit && \
14
  chmod -R 777 /root/.cache /root/.config /root/.streamlit /app
15
 
16
  # Install dependencies
 
3
 
4
  # Set environment variables to avoid writing to root
5
  # Optional: Disable Usage Stats (telemetry) for Privacy / Stability
6
+ ENV HOME=/root
7
+ ENV MPLCONFIGDIR=/root/.config/matplotlib
8
+ ENV STREAMLIT_CONFIG_DIR=/root/.streamlit
9
  ENV STREAMLIT_DISABLE_USAGE_STATS=true
10
 
11
  # Set working directory inside container
 
13
 
14
  # Ensure /app and cache/config directories exist with proper permissions
15
  RUN chown -R root:root /app && \
16
+ mkdir -p /root/.cache /root/.config/matplotlib /root/.streamlit && \
17
  chmod -R 777 /root/.cache /root/.config /root/.streamlit /app
18
 
19
  # Install dependencies