burask commited on
Commit
b19a822
·
verified ·
1 Parent(s): 7a7248b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +24 -11
Dockerfile CHANGED
@@ -1,11 +1,24 @@
1
- FROM python:3.10
2
-
3
- RUN apt-get update && apt-get install -y ffmpeg
4
-
5
- COPY requirements.txt /app/requirements.txt
6
- RUN pip install --no-cache-dir -r /app/requirements.txt
7
-
8
- COPY . /app
9
- WORKDIR /app
10
-
11
- CMD ["python", "app.py"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10
2
+
3
+ # Sistem bağımlılıklarını yükle
4
+ COPY apt.txt /app/apt.txt
5
+ RUN apt-get update && xargs -a /app/apt.txt apt-get install -y
6
+
7
+ # Cache klasörü oluştur
8
+ RUN mkdir -p /app/cache
9
+
10
+ # Ortam değişkenlerini ayarla
11
+ ENV TRANSFORMERS_CACHE=/app/cache
12
+ ENV HF_HOME=/app/cache
13
+
14
+ # Python bağımlılıklarını yükle
15
+ COPY requirements.txt /app/requirements.txt
16
+ RUN pip install --no-cache-dir -r /app/requirements.txt
17
+
18
+ # Kodları kopyala
19
+ COPY . /app
20
+ WORKDIR /app
21
+
22
+ # Flask'ı çalıştır
23
+ CMD ["python", "app.py"]
24
+