handex commited on
Commit
d70c2e1
·
1 Parent(s): 1f84c57

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -8
Dockerfile CHANGED
@@ -15,16 +15,12 @@ RUN apt-get update && apt-get install -y \
15
  libstdc++6 \
16
  && rm -rf /var/lib/apt/lists/*
17
 
18
- COPY src/ ./src/
 
19
 
20
- RUN pip3 install --upgrade pip
21
-
22
- RUN pip3 install --ignore-installed blinker
23
-
24
- RUN pip3 install streamlit pillow "numpy<2"
25
 
26
  EXPOSE 8501
27
 
28
- HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
29
-
30
  ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false"]
 
15
  libstdc++6 \
16
  && rm -rf /var/lib/apt/lists/*
17
 
18
+ COPY src/ ./src
19
+ COPY requirements.txt .
20
 
21
+ RUN pip install --upgrade pip
22
+ RUN pip install -r requirements.txt
 
 
 
23
 
24
  EXPOSE 8501
25
 
 
 
26
  ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false"]