File size: 466 Bytes
6d0461f
 
 
 
 
 
 
 
 
 
 
e9e0f4c
308129c
1
2
3
4
5
6
7
8
9
10
11
12
13
# Read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
# you will also find guides on how best to write your Dockerfile

FROM python:3.10

RUN useradd -m -u 1000 user
USER user
ENV PATH="/home/user/.local/bin:$PATH"

WORKDIR /infinity_emb
RUN pip install --no-cache-dir -qU pip
RUN pip install --no-cache-dir -qU 'infinity-emb[server,cache,logging,einops,torch]'
CMD ["infinity_emb", "v2", "--host", "0.0.0.0", "--port", "7860", "--no-bettertransformer"]