Spaces:
Runtime error
Runtime error
jerukperas
commited on
Commit
•
6d0461f
1
Parent(s):
16309cd
Create Dockerfile
Browse files- Dockerfile +13 -0
Dockerfile
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
|
2 |
+
# you will also find guides on how best to write your Dockerfile
|
3 |
+
|
4 |
+
FROM python:3.10
|
5 |
+
|
6 |
+
RUN useradd -m -u 1000 user
|
7 |
+
USER user
|
8 |
+
ENV PATH="/home/user/.local/bin:$PATH"
|
9 |
+
|
10 |
+
WORKDIR /infinity_emb
|
11 |
+
RUN pip install --no-cache-dir -qU pip
|
12 |
+
RUN pip install --no-cache-dir -qU 'infinity-emb[server,cache,logging,einops,optimum]'
|
13 |
+
CMD ["infinity_emb", "v2", "--model-id", "mixedbread-ai/mxbai-embed-large-v1", "--batch-size", "8", "--host", "0.0.0.0", "--port", "7860", "--engine", "optimum"]
|