Satyam0077 commited on
Commit
f564d0e
·
verified ·
1 Parent(s): 156086d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -4
Dockerfile CHANGED
@@ -8,13 +8,15 @@ RUN apt-get update && apt-get install -y \
8
  git \
9
  && rm -rf /var/lib/apt/lists/*
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"]
 
8
  git \
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
+ # Install dependencies
12
  COPY requirements.txt ./
13
+ RUN pip install --no-cache-dir -r requirements.txt
14
 
15
+ # Copy all files (flat structure)
16
+ COPY . .
17
 
18
  EXPOSE 8501
19
 
20
+ HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
21
 
22
+ ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]