yusufgundogdu commited on
Commit
f319c95
·
verified ·
1 Parent(s): 48a94af

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -12
Dockerfile CHANGED
@@ -2,18 +2,14 @@ FROM python:3.9-slim
2
 
3
  WORKDIR /app
4
 
5
- # Gerekli sistem kütüphaneleri (minimum)
6
- RUN apt-get update && apt-get install -y --no-install-recommends \
7
- && rm -rf /var/lib/apt/lists/*
8
 
9
- COPY requirements.txt .
10
- RUN pip install --no-cache-dir -r requirements.txt
11
 
12
- COPY . .
 
13
 
14
- # Hugging Face'in beklediği port yapılandırması
15
- ENV PORT=8080
16
- EXPOSE 8080
17
-
18
- # Production-ready WSGI sunucusu
19
- CMD ["gunicorn", "--bind", "0.0.0.0:8080", "--workers", "1", "--threads", "1", "--timeout", "120", "app:app"]
 
2
 
3
  WORKDIR /app
4
 
5
+ # Installiere Flask und NumPy direkt
6
+ RUN pip install --no-cache-dir flask numpy
 
7
 
8
+ # Kopiere die Flask-App
9
+ COPY app.py /app/app.py
10
 
11
+ # Port öffnen
12
+ EXPOSE 7860
13
 
14
+ # Starte die Flask-App direkt (ohne Gunicorn)
15
+ CMD ["python", "/app/app.py"]