Spaces:
Build error
Build error
Create Dockerfile
Browse files- Dockerfile +6 -0
Dockerfile
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.10-slim
|
| 2 |
+
RUN apt-get update && apt-get install -y build-essential cmake
|
| 3 |
+
RUN pip install fastapi uvicorn llama-cpp-python requests
|
| 4 |
+
WORKDIR /code
|
| 5 |
+
COPY . .
|
| 6 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|