Sher1988 commited on
Commit
4dc523f
·
verified ·
1 Parent(s): 90c960d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -3
Dockerfile CHANGED
@@ -13,8 +13,11 @@ COPY src/ ./src/
13
 
14
  RUN pip3 install -r requirements.txt
15
 
16
- EXPOSE 8501
 
17
 
18
- HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
 
19
 
20
- ENTRYPOINT ["streamlit", "run", "src/image_classifier_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
 
 
13
 
14
  RUN pip3 install -r requirements.txt
15
 
16
+ # Change EXPOSE to 7860
17
+ EXPOSE 7860
18
 
19
+ # Update HEALTHCHECK to use 7860
20
+ HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health
21
 
22
+ # Add the XSRF and CORS disable flags to ENTRYPOINT
23
+ ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.enableCORS=false", "--server.enableXsrfProtection=false"]