Fola-lad commited on
Commit
9ff4779
·
1 Parent(s): ac0c5d3

fix healthcheck start-period and copy data into image

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -2
Dockerfile CHANGED
@@ -10,11 +10,13 @@ RUN apt-get update && apt-get install -y \
10
 
11
  COPY requirements.txt ./
12
  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/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
 
10
 
11
  COPY requirements.txt ./
12
  COPY src/ ./src/
13
+ COPY data/ ./data/
14
 
15
  RUN pip3 install -r requirements.txt
16
 
17
  EXPOSE 8501
18
 
19
+ HEALTHCHECK --start-period=30s --interval=10s --timeout=5s \
20
+ CMD curl --fail http://localhost:8501/_stcore/health
21
 
22
+ ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]