alexandraroze commited on
Commit
a637871
·
1 Parent(s): a303cd3

updated app

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -6
Dockerfile CHANGED
@@ -38,10 +38,20 @@ WORKDIR $HOME/app
38
  COPY . $HOME/app
39
 
40
  # Expose a port if needed (update according to your application)
 
 
 
 
 
 
 
 
 
 
 
 
41
  EXPOSE 8501
42
- # Run the Streamlit app
43
- CMD streamlit run app.py \
44
- --server.headless true \
45
- --server.enableCORS false \
46
- --server.enableXsrfProtection false \
47
- --server.fileWatcherType none
 
38
  COPY . $HOME/app
39
 
40
  # Expose a port if needed (update according to your application)
41
+ #EXPOSE 8501
42
+ #
43
+ #CMD streamlit run app.py \
44
+ # --server.headless true \
45
+ # --server.enableCORS false \
46
+ # --server.enableXsrfProtection false \
47
+ # --server.fileWatcherType none
48
+
49
+ #EXPOSE 7860
50
+ #
51
+ #CMD ["streamlit", "run", "app.py", "--server.address=0.0.0.0", "--server.port=7860"]
52
+
53
  EXPOSE 8501
54
+
55
+ HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
56
+
57
+ ENTRYPOINT ["streamlit", "run", "streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]