RameshJ commited on
Commit
3677f34
·
verified ·
1 Parent(s): 44081bf

Update Dockerfile

Browse files

writable path for streamlit config

Files changed (1) hide show
  1. Dockerfile +7 -2
Dockerfile CHANGED
@@ -9,6 +9,11 @@ RUN apt-get update && apt-get install -y \
9
  git \
10
  && rm -rf /var/lib/apt/lists/*
11
 
 
 
 
 
 
12
  COPY requirements.txt ./
13
  COPY . .
14
 
@@ -16,6 +21,6 @@ RUN pip3 install -r requirements.txt
16
 
17
  EXPOSE 8501
18
 
19
- HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
20
 
21
- ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
 
9
  git \
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
+
13
+ # Set writable path for Streamlit config
14
+ ENV STREAMLIT_HOME=/tmp/.streamlit
15
+ RUN mkdir -p /tmp/.streamlit
16
+
17
  COPY requirements.txt ./
18
  COPY . .
19
 
 
21
 
22
  EXPOSE 8501
23
 
24
+ HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
25
 
26
+ ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0", "--global.dataFrameSerialization", "legacy", "--logger.level", "debug"]