File size: 561 Bytes
0033842
9c1cd8c
01c7714
8ed352c
01c7714
 
8ed352c
01c7714
 
 
8ed352c
01c7714
 
8ed352c
5101c69
1cf3c05
ef296f1
072d5bd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM ghcr.io/huggingface/text-embeddings-inference:86-1.2

RUN useradd -m -u 1000 user

# Switch to the "user" user
USER user

# Set home to the user's home directory
ENV HOME=/home/user \
    PATH=/home/user/.local/bin:$PATH

# Set the working directory to the user's home directory
WORKDIR $HOME/app

RUN mkdir -p /home/user/.cache/huggingface
RUN mkdir -p /data

ENTRYPOINT ["text-embeddings-router", "--model-id", "BAAI/bge-large-en-v1.5", "--hf-api-token", "$HF_TOKEN", "--api-key", "$HF_TOKEN", "--huggingface-hub-cache", "/home/user/.cache/huggingface"]