Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +10 -3
Dockerfile
CHANGED
|
@@ -1,12 +1,19 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
|
|
|
|
| 5 |
WORKDIR /app
|
| 6 |
|
|
|
|
| 7 |
COPY requirements.txt .
|
| 8 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 9 |
|
|
|
|
| 10 |
COPY . .
|
| 11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
|
|
| 1 |
+
# Basis-Image
|
| 2 |
+
FROM python:3.10-slim
|
|
|
|
| 3 |
|
| 4 |
+
# Arbeitsverzeichnis setzen
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
+
# Requirements installieren
|
| 8 |
COPY requirements.txt .
|
| 9 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 10 |
|
| 11 |
+
# Projektdateien kopieren
|
| 12 |
COPY . .
|
| 13 |
|
| 14 |
+
# Port für HuggingFace Spaces
|
| 15 |
+
EXPOSE 7860
|
| 16 |
+
|
| 17 |
+
# Startbefehl
|
| 18 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
| 19 |
+
|