Refat81 commited on
Commit
63260fd
·
verified ·
1 Parent(s): b02df2e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -2
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM python:3.13.5-slim
2
 
3
  WORKDIR /app
4
 
@@ -14,8 +14,13 @@ COPY pages/ ./pages/
14
 
15
  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"]
 
1
+ FROM python:3.11-slim
2
 
3
  WORKDIR /app
4
 
 
14
 
15
  RUN pip3 install -r requirements.txt
16
 
17
+ # Disable Streamlit metrics to fix permission issues
18
+ ENV STREAMLIT_GLOBAL_METRICS=false
19
+ ENV STREAMLIT_GLOBAL_DEVELOPMENT_MODE=false
20
+ ENV STREAMLIT_SERVER_HEADLESS=true
21
+
22
  EXPOSE 8501
23
 
24
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
25
 
26
+ ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0", "--global.developmentMode=false", "--browser.gatherUsageStats=false"]