yusufgundogdu commited on
Commit
8e60017
·
verified ·
1 Parent(s): 66924ca

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -5
Dockerfile CHANGED
@@ -1,12 +1,18 @@
1
- FROM python:3.10-slim
 
2
 
3
- WORKDIR /code
 
4
 
 
5
  COPY requirements.txt .
6
  RUN pip install --no-cache-dir -r requirements.txt
7
 
8
- COPY app.py .
 
9
 
10
- EXPOSE 7860
 
11
 
12
- CMD ["python", "app.py"]
 
 
1
+ # Temel imaj
2
+ FROM python:3.9-slim
3
 
4
+ # Çalışma dizini oluştur
5
+ WORKDIR /app
6
 
7
+ # Gereksinimleri kopyala ve kur
8
  COPY requirements.txt .
9
  RUN pip install --no-cache-dir -r requirements.txt
10
 
11
+ # Uygulama dosyalarını kopyala
12
+ COPY . .
13
 
14
+ # Portu aç
15
+ EXPOSE 8080
16
 
17
+ # Uygulamayı başlat
18
+ CMD ["gunicorn", "--bind", "0.0.0.0:8080", "app:app"]