File size: 465 Bytes
a84535c
 
9647ebb
 
 
 
 
 
d107916
 
 
9647ebb
 
a84535c
52e2399
9647ebb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM ghcr.io/huggingface/text-embeddings-inference:cpu-1.2

# Install git and git-lfs
RUN apt-get update && apt-get install -y git git-lfs && rm -rf /var/lib/apt/lists/*

# Install and initialize git-lfs
RUN git lfs install

ARG MODEL_ID=Snowflake/snowflake-arctic-embed-xs
# ENV MODEL_ID=${MODEL_ID}

# Clone the repository
RUN git clone https://huggingface.co/${MODEL_ID} model

ENTRYPOINT ["sh", "-c"]
CMD ["text-embeddings-router --model-id model --port 8080"]