sakshamlakhera commited on
Commit
fdf5718
·
1 Parent(s): 733fcd8

Docker fix

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -5
Dockerfile CHANGED
@@ -9,13 +9,15 @@ RUN apt-get update && apt-get install -y \
9
  git \
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
- COPY requirements.txt ./
13
- COPY src/ ./src/
14
 
15
- RUN pip3 install -r requirements.txt
 
16
 
17
  EXPOSE 8501
18
 
19
- HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
20
 
21
- ENTRYPOINT ["streamlit", "run", "Home.py", "--server.port=8501", "--server.address=0.0.0.0"]
 
 
9
  git \
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
+ # Copy everything in your local root folder into /app inside the container
13
+ COPY . .
14
 
15
+ # Install dependencies
16
+ RUN pip3 install --no-cache-dir -r requirements.txt
17
 
18
  EXPOSE 8501
19
 
20
+ HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
21
 
22
+ # Run Home.py which is in the root directory
23
+ ENTRYPOINT ["streamlit", "run", "Home.py", "--server.port=8501", "--server.address=0.0.0.0"]