Spaces:
Runtime error
Runtime error
Upload Dockerfile
Browse files- Dockerfile +8 -0
Dockerfile
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.10.2-slim-buster
|
| 2 |
+
WORKDIR /app
|
| 3 |
+
COPY ./requirements.txt /app/requirements.txt
|
| 4 |
+
COPY pipelin.pkl /app/pipelin.pkl
|
| 5 |
+
RUN pip install --no cache-dir -- upgrade -r requirements.txt /app/requirements.txt
|
| 6 |
+
COPY . .
|
| 7 |
+
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
| 8 |
+
|