Spaces:
Sleeping
Sleeping
Upload 3 files
Browse files- Dockerfile +16 -18
- requirements.txt +6 -0
Dockerfile
CHANGED
|
@@ -1,18 +1,16 @@
|
|
| 1 |
-
FROM python:3.13.5
|
| 2 |
-
|
| 3 |
-
WORKDIR /app
|
| 4 |
-
|
| 5 |
-
COPY . /app/
|
| 6 |
-
|
| 7 |
-
RUN mkdir -p /app/hf_cache /app/models
|
| 8 |
-
RUN chmod -R 777 /app/hf_cache /app/models
|
| 9 |
-
|
| 10 |
-
ENV HF_HOME=/app/hf_cache
|
| 11 |
-
|
| 12 |
-
RUN pip install --no-cache-dir .
|
| 13 |
-
|
| 14 |
-
EXPOSE 7860
|
| 15 |
-
|
| 16 |
-
CMD ["python", "server.py"]
|
| 17 |
-
|
| 18 |
-
|
|
|
|
| 1 |
+
FROM python:3.13.5
|
| 2 |
+
|
| 3 |
+
WORKDIR /app
|
| 4 |
+
|
| 5 |
+
COPY . /app/
|
| 6 |
+
|
| 7 |
+
RUN mkdir -p /app/hf_cache /app/models
|
| 8 |
+
RUN chmod -R 777 /app/hf_cache /app/models
|
| 9 |
+
|
| 10 |
+
ENV HF_HOME=/app/hf_cache
|
| 11 |
+
|
| 12 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 13 |
+
|
| 14 |
+
EXPOSE 7860
|
| 15 |
+
|
| 16 |
+
CMD ["python", "server.py"]
|
|
|
|
|
|
requirements.txt
CHANGED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
sentence-transformers
|
| 2 |
+
litserve
|
| 3 |
+
hf_xet
|
| 4 |
+
huggingface-hub>=0.16.0
|
| 5 |
+
numpy>=1.21.0
|
| 6 |
+
fastapi>=0.95.0
|