Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +9 -7
Dockerfile
CHANGED
|
@@ -1,16 +1,18 @@
|
|
| 1 |
-
#
|
| 2 |
FROM python:3.10-slim
|
| 3 |
|
| 4 |
-
# Arbeitsverzeichnis
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
-
#
|
| 8 |
-
COPY requirements.txt
|
| 9 |
RUN pip install -r requirements.txt
|
| 10 |
|
| 11 |
-
#
|
| 12 |
-
COPY .
|
| 13 |
|
| 14 |
-
#
|
| 15 |
EXPOSE 8080
|
|
|
|
|
|
|
| 16 |
CMD ["python", "app.py"]
|
|
|
|
| 1 |
+
# Basis-Image wählen (Python 3.10 ist ein beliebtes Image)
|
| 2 |
FROM python:3.10-slim
|
| 3 |
|
| 4 |
+
# Arbeitsverzeichnis erstellen und wechseln
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
+
# Requirements in das Arbeitsverzeichnis kopieren und installieren
|
| 8 |
+
COPY requirements.txt /app/
|
| 9 |
RUN pip install -r requirements.txt
|
| 10 |
|
| 11 |
+
# Den gesamten Code in das Arbeitsverzeichnis kopieren
|
| 12 |
+
COPY . /app
|
| 13 |
|
| 14 |
+
# Port freigeben (wichtig für Hugging Face, oft 7860 oder 8080)
|
| 15 |
EXPOSE 8080
|
| 16 |
+
|
| 17 |
+
# Startbefehl für die App
|
| 18 |
CMD ["python", "app.py"]
|