Update Dockerfile
Browse files- Dockerfile +7 -5
Dockerfile
CHANGED
|
@@ -1,15 +1,17 @@
|
|
| 1 |
-
# Nutze Python als Basis
|
| 2 |
FROM python:3.9
|
| 3 |
|
| 4 |
-
# Arbeitsverzeichnis
|
| 5 |
WORKDIR /code
|
| 6 |
|
| 7 |
-
#
|
| 8 |
COPY requirements.txt .
|
| 9 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 10 |
|
| 11 |
-
#
|
| 12 |
COPY . .
|
| 13 |
|
| 14 |
-
#
|
|
|
|
|
|
|
|
|
|
| 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"]
|