BesottenJenny commited on
Commit
8aae862
·
verified ·
1 Parent(s): afbe5a4

Upload 2 files

Browse files
Files changed (2) hide show
  1. Dockerfile +3 -5
  2. requirements.txt +3 -2
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
@@ -8,13 +8,11 @@ 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 pip install --no-cache-dir -r requirements.txt
15
 
16
  EXPOSE 8501
17
 
18
- HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
19
-
20
  ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false"]
 
1
+ FROM python:3.12-slim
2
 
3
  WORKDIR /app
4
 
 
8
  git \
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
+ COPY requirements.txt ./
12
  COPY src/ ./src/
13
 
14
+ RUN pip3 install --no-cache-dir -r requirements.txt
15
 
16
  EXPOSE 8501
17
 
 
 
18
  ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false"]
requirements.txt CHANGED
@@ -1,4 +1,5 @@
1
  streamlit==1.44.0
2
- tensorflow==2.15.0
3
- numpy==1.26.4
 
4
  pillow
 
1
  streamlit==1.44.0
2
+ tensorflow==2.19.0
3
+ keras==3.10.0
4
+ numpy==2.0.2
5
  pillow