Renday commited on
Commit
ddc2f5e
·
verified ·
1 Parent(s): 2abe698

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -5
Dockerfile CHANGED
@@ -1,15 +1,17 @@
1
- # Nutze Python als Basis
2
  FROM python:3.9
3
 
4
- # Arbeitsverzeichnis im Container
5
  WORKDIR /code
6
 
7
- # Kopiere die requirements und installiere sie
8
  COPY requirements.txt .
9
  RUN pip install --no-cache-dir -r requirements.txt
10
 
11
- # Kopiere den Rest des Codes
12
  COPY . .
13
 
14
- # Starte die App auf Port 7860
 
 
 
15
  CMD ["python", "app.py"]
 
 
1
  FROM python:3.9
2
 
3
+ # Arbeitsverzeichnis setzen
4
  WORKDIR /code
5
 
6
+ # Requirements kopieren und installieren
7
  COPY requirements.txt .
8
  RUN pip install --no-cache-dir -r requirements.txt
9
 
10
+ # Alle Dateien kopieren (inkl. templates und assets)
11
  COPY . .
12
 
13
+ # Berechtigungen setzen (wichtig für Hugging Face)
14
+ RUN chmod -R 777 /code
15
+
16
+ # Flask App starten
17
  CMD ["python", "app.py"]