Spaces:
Runtime error
Runtime error
fix : DockerFile version
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
|
@@ -2,10 +2,10 @@
|
|
| 2 |
|
| 3 |
FROM python:3.8.10
|
| 4 |
|
| 5 |
-
|
| 6 |
|
| 7 |
-
RUN pip install -r requirements.txt
|
| 8 |
|
| 9 |
-
|
| 10 |
|
| 11 |
-
|
|
|
|
| 2 |
|
| 3 |
FROM python:3.8.10
|
| 4 |
|
| 5 |
+
COPY requirements.txt .
|
| 6 |
|
| 7 |
+
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 8 |
|
| 9 |
+
COPY . .
|
| 10 |
|
| 11 |
+
CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"]
|