Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +4 -10
Dockerfile
CHANGED
@@ -1,18 +1,12 @@
|
|
1 |
-
# Basis-Image
|
2 |
FROM python:3.10-slim
|
3 |
|
4 |
-
# Arbeitsverzeichnis setzen
|
5 |
WORKDIR /app
|
6 |
|
7 |
-
|
8 |
-
|
9 |
-
RUN pip install -r requirements.txt
|
10 |
|
11 |
-
|
12 |
-
COPY app /app
|
13 |
|
14 |
-
# Port freigeben (optional, falls du einen bestimmten Port für HTTP benötigst)
|
15 |
EXPOSE 8080
|
16 |
|
17 |
-
|
18 |
-
CMD ["python", "app.py"]
|
|
|
|
|
1 |
FROM python:3.10-slim
|
2 |
|
|
|
3 |
WORKDIR /app
|
4 |
|
5 |
+
COPY requirements.txt .
|
6 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
7 |
|
8 |
+
COPY . .
|
|
|
9 |
|
|
|
10 |
EXPOSE 8080
|
11 |
|
12 |
+
CMD ["python", "app/app.py"]
|
|