Spaces:
Running
Running
Create Dockerfile
Browse files- Dockerfile +16 -0
Dockerfile
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Nutze ein Basis-Python-Image
|
2 |
+
FROM python:3.10-slim
|
3 |
+
|
4 |
+
# Arbeitsverzeichnis festlegen
|
5 |
+
WORKDIR /app
|
6 |
+
|
7 |
+
# Anforderungen hinzufügen
|
8 |
+
COPY requirements.txt .
|
9 |
+
RUN pip install -r requirements.txt
|
10 |
+
|
11 |
+
# App-Code hinzufügen
|
12 |
+
COPY . .
|
13 |
+
|
14 |
+
# Container-Port und Startbefehl
|
15 |
+
EXPOSE 8080
|
16 |
+
CMD ["python", "app.py"]
|