hello10000 commited on
Commit
b821704
·
verified ·
1 Parent(s): 25ed4c6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -1,5 +1,9 @@
1
  FROM python:3.12-slim
2
 
 
 
 
 
3
  WORKDIR /app
4
 
5
  RUN apt-get update && apt-get install -y \
@@ -22,4 +26,4 @@ EXPOSE 8501
22
 
23
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
24
 
25
- ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
 
1
  FROM python:3.12-slim
2
 
3
+ ENV HOME=/tmp
4
+ ENV STREAMLIT_CONFIG_DIR=/tmp/.streamlit
5
+ RUN mkdir -p /tmp/.streamlit
6
+
7
  WORKDIR /app
8
 
9
  RUN apt-get update && apt-get install -y \
 
26
 
27
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
28
 
29
+ ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]