Renday commited on
Commit
9734c19
·
verified ·
1 Parent(s): 1d28ccb

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -11
Dockerfile CHANGED
@@ -1,16 +1,8 @@
1
  FROM python:3.9
2
-
3
- # Erstelle ein Arbeitsverzeichnis
4
  WORKDIR /code
5
-
6
- # Kopiere alle Dateien in den Container
7
- COPY . .
8
-
9
- # Installiere die Python-Pakete
10
  RUN pip install --no-cache-dir -r requirements.txt
11
-
12
- # Port 7860 ist Pflicht für Hugging Face
13
  EXPOSE 7860
14
-
15
- # Starte die App
16
  CMD ["python", "app.py"]
 
1
  FROM python:3.9
 
 
2
  WORKDIR /code
3
+ COPY requirements.txt .
 
 
 
 
4
  RUN pip install --no-cache-dir -r requirements.txt
5
+ COPY . .
6
+ # Flask braucht diesen Port
7
  EXPOSE 7860
 
 
8
  CMD ["python", "app.py"]