Spaces:
No application file
No application file
Create dockerfile
Browse files- dockerfile +14 -0
dockerfile
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.9-slim
|
| 2 |
+
|
| 3 |
+
WORKDIR /app
|
| 4 |
+
COPY . .
|
| 5 |
+
|
| 6 |
+
RUN pip install --no-cache-dir \
|
| 7 |
+
fastapi \
|
| 8 |
+
uvicorn \
|
| 9 |
+
langchain \
|
| 10 |
+
huggingface-hub \
|
| 11 |
+
langchain-community
|
| 12 |
+
|
| 13 |
+
EXPOSE 7860
|
| 14 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|