Update Dockerfile
Browse files- Dockerfile +3 -11
Dockerfile
CHANGED
|
@@ -1,16 +1,8 @@
|
|
| 1 |
FROM python:3.9
|
| 2 |
-
|
| 3 |
-
# Erstelle ein Arbeitsverzeichnis
|
| 4 |
WORKDIR /code
|
| 5 |
-
|
| 6 |
-
# Kopiere alle Dateien in den Container
|
| 7 |
-
COPY . .
|
| 8 |
-
|
| 9 |
-
# Installiere die Python-Pakete
|
| 10 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 11 |
-
|
| 12 |
-
#
|
| 13 |
EXPOSE 7860
|
| 14 |
-
|
| 15 |
-
# Starte die App
|
| 16 |
CMD ["python", "app.py"]
|
|
|
|
| 1 |
FROM python:3.9
|
|
|
|
|
|
|
| 2 |
WORKDIR /code
|
| 3 |
+
COPY requirements.txt .
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 5 |
+
COPY . .
|
| 6 |
+
# Flask braucht diesen Port
|
| 7 |
EXPOSE 7860
|
|
|
|
|
|
|
| 8 |
CMD ["python", "app.py"]
|