ShivamKum4r commited on
Commit
eee02c1
·
verified ·
1 Parent(s): 5e50de8

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -4
Dockerfile CHANGED
@@ -3,6 +3,11 @@ FROM python:3.9-slim
3
  # Set the working directory
4
  WORKDIR /app
5
 
 
 
 
 
 
6
  # Install system dependencies required by RDKit and Streamlit
7
  RUN apt-get update && apt-get install -y \
8
  build-essential \
@@ -15,10 +20,9 @@ RUN apt-get update && apt-get install -y \
15
  libx11-6 \
16
  && rm -rf /var/lib/apt/lists/*
17
 
18
- # Set Streamlit environment variables to avoid permission issues
19
- ENV STREAMLIT_HOME="/app/.streamlit"
20
- ENV STREAMLIT_BROWSER_GATHERUSAGESTATS=false
21
- RUN mkdir -p /app/.streamlit
22
 
23
  # Upgrade pip
24
  RUN pip install --upgrade pip
 
3
  # Set the working directory
4
  WORKDIR /app
5
 
6
+ # Set home and streamlit config to avoid permission issues
7
+ ENV HOME="/app"
8
+ ENV STREAMLIT_HOME="/app/.streamlit"
9
+ ENV STREAMLIT_BROWSER_GATHERUSAGESTATS=false
10
+
11
  # Install system dependencies required by RDKit and Streamlit
12
  RUN apt-get update && apt-get install -y \
13
  build-essential \
 
20
  libx11-6 \
21
  && rm -rf /var/lib/apt/lists/*
22
 
23
+ # Create Streamlit config directory and config file to disable usage stats
24
+ RUN mkdir -p /app/.streamlit && \
25
+ echo "[browser]\ngatherUsageStats = false" > /app/.streamlit/config.toml
 
26
 
27
  # Upgrade pip
28
  RUN pip install --upgrade pip