handex commited on
Commit
33314f5
·
1 Parent(s): 920cdf6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +27 -2
Dockerfile CHANGED
@@ -1,8 +1,33 @@
1
- FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
5
- # TensorFlow’un çalışması için gereken core kütüphaneler:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  RUN apt-get update && apt-get install -y \
7
  build-essential \
8
  curl \
 
1
+ FROM tensorflow/tensorflow:2.15.0
2
 
3
  WORKDIR /app
4
 
5
+ RUN apt-get update && apt-get install -y \
6
+ build-essential \
7
+ curl \
8
+ git \
9
+ libglib2.0-0 \
10
+ libsm6 \
11
+ libxext6 \
12
+ libxrender1 \
13
+ libffi-dev \
14
+ libssl-dev \
15
+ libstdc++6 \
16
+ && rm -rf /var/lib/apt/lists/*
17
+
18
+ COPY requirements.txt ./
19
+ COPY src/ ./src/
20
+
21
+ RUN pip3 install --upgrade pip
22
+ RUN pip3 install --no-cache-dir -r requirements.txt
23
+
24
+ EXPOSE 8501
25
+
26
+ HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
27
+
28
+ ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false"]
29
+ WORKDIR /app
30
+
31
  RUN apt-get update && apt-get install -y \
32
  build-essential \
33
  curl \