elifarslancelik commited on
Commit
04648ff
·
verified ·
1 Parent(s): 8798b48

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -0
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Resmi Python imajını kullan (Hugging Face Spaces ile uyumlu)
2
+ FROM python:3.10-slim
3
+
4
+ # Çalışma dizinini ayarla
5
+ WORKDIR /app
6
+
7
+ # Bağımlılıkları kopyala ve yükle
8
+ COPY requirements.txt .
9
+ RUN pip install --no-cache-dir -r requirements.txt
10
+
11
+ # Tüm proje dosyalarını kopyala
12
+ COPY . .
13
+
14
+ # Hugging Face Spaces için gerekli port
15
+ EXPOSE 7860
16
+
17
+ # Production-ready WSGI sunucusu ile başlat
18
+ CMD ["gunicorn", "-b", "0.0.0.0:7860", "--timeout", "600", "app:app"]