aadii14 commited on
Commit
c8af504
·
verified ·
1 Parent(s): 9bab4aa

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -5
Dockerfile CHANGED
@@ -18,12 +18,11 @@ RUN pip install streamlit
18
  COPY requirements.txt ./
19
  RUN pip install -r requirements.txt
20
 
21
- # Switch back to user
22
- USER user
23
-
24
  # Copy app code
25
  COPY --chown=user . .
26
 
 
27
  EXPOSE 8501
28
- HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
29
- ENTRYPOINT ["python", "-m", "streamlit", "run", "app.py", "--server.port=8501", "--server.enableXsrfProtection=false"]
 
 
18
  COPY requirements.txt ./
19
  RUN pip install -r requirements.txt
20
 
 
 
 
21
  # Copy app code
22
  COPY --chown=user . .
23
 
24
+ # Expose the Streamlit port
25
  EXPOSE 8501
26
+
27
+ # Run Streamlit app
28
+ ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false"]