MBG0903 commited on
Commit
f8c2416
·
verified ·
1 Parent(s): e0c8a9e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -5,7 +5,6 @@ WORKDIR /app
5
  RUN apt-get update && apt-get install -y \
6
  build-essential \
7
  curl \
8
- git \
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
  COPY requirements.txt ./
@@ -15,6 +14,7 @@ COPY . .
15
 
16
  EXPOSE 7860
17
 
18
- HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health || exit 1
 
19
 
20
- ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
 
5
  RUN apt-get update && apt-get install -y \
6
  build-essential \
7
  curl \
 
8
  && rm -rf /var/lib/apt/lists/*
9
 
10
  COPY requirements.txt ./
 
14
 
15
  EXPOSE 7860
16
 
17
+ HEALTHCHECK --interval=30s --timeout=5s --start-period=30s --retries=3 \
18
+ CMD curl --fail http://localhost:7860/_stcore/health || exit 1
19
 
20
+ CMD ["streamlit", "run", "app.py"]