eagle0504 commited on
Commit
7d51372
·
verified ·
1 Parent(s): fdf091e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -11,10 +11,11 @@ RUN apt-get update && apt-get install -y \
11
  COPY requirements.txt ./
12
  COPY src/ ./src/
13
 
14
- RUN pip3 install -r requirements.txt
15
 
16
  EXPOSE 7860
17
 
18
- HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
 
19
 
20
- ENTRYPOINT ["streamlit", "run", "src/app.py", "--server.port=7860", "--server.address=0.0.0.0"]
 
11
  COPY requirements.txt ./
12
  COPY src/ ./src/
13
 
14
+ RUN pip3 install --no-cache-dir -r requirements.txt
15
 
16
  EXPOSE 7860
17
 
18
+ # Optional: simple root healthcheck (replace with your own endpoint if needed)
19
+ HEALTHCHECK CMD curl --fail http://localhost:7860 || exit 1
20
 
21
+ ENTRYPOINT ["python", "src/app.py"]