yusufgundogdu commited on
Commit
163e93b
·
verified ·
1 Parent(s): dd3dd09

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -7
Dockerfile CHANGED
@@ -2,14 +2,13 @@ FROM python:3.9-slim
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"]
 
2
 
3
  WORKDIR /app
4
 
5
+ # Install dependencies
6
+ COPY requirements.txt .
7
+ RUN pip install --no-cache-dir -r requirements.txt
8
 
9
+ # Copy all files
10
+ COPY . .
11
 
 
12
  EXPOSE 7860
13
 
14
+ CMD ["python", "app.py"]