yusufgundogdu commited on
Commit
b0acf42
·
verified ·
1 Parent(s): ef27530

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -8
Dockerfile CHANGED
@@ -1,8 +1,9 @@
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 .
@@ -11,8 +12,5 @@ RUN pip install --no-cache-dir -r requirements.txt
11
  # Uygulama dosyalarını kopyala
12
  COPY . .
13
 
14
- # Portu
15
- EXPOSE 8080
16
-
17
- # Uygulamayı başlat
18
- CMD ["gunicorn", "--bind", "0.0.0.0:8080", "app:app"]
 
1
+ # Alpine tabanlı ultra hafif Python imajı
2
+ FROM python:3.9-alpine
3
 
4
+ # Çalışma dizini ve gerekli paketler
5
  WORKDIR /app
6
+ RUN apk add --no-cache gcc musl-dev
7
 
8
  # Gereksinimleri kopyala ve kur
9
  COPY requirements.txt .
 
12
  # Uygulama dosyalarını kopyala
13
  COPY . .
14
 
15
+ # Hafif WSGI sunucusu (waitress)
16
+ CMD ["waitress-serve", "--port=8080", "--threads=2", "app:app"]