Spaces:
Running
on
A10G
Running
on
A10G
Update Dockerfile
Browse files- Dockerfile +18 -0
Dockerfile
CHANGED
@@ -1,3 +1,21 @@
|
|
1 |
FROM ghcr.io/huggingface/text-embeddings-inference:86-1.2
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
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
|
|
|
1 |
FROM ghcr.io/huggingface/text-embeddings-inference:86-1.2
|
2 |
|
3 |
+
RUN useradd -m -u 1000 user
|
4 |
+
|
5 |
+
RUN mkdir -p /data
|
6 |
+
RUN chown -R user /data
|
7 |
+
|
8 |
+
RUN mkdir -p /home/user/.cache/huggingface
|
9 |
+
RUN chown -R user /home/user/.cache/huggingface
|
10 |
+
|
11 |
+
# Switch to the "user" user
|
12 |
+
USER user
|
13 |
+
|
14 |
+
# Set home to the user's home directory
|
15 |
+
ENV HOME=/home/user \
|
16 |
+
PATH=/home/user/.local/bin:$PATH
|
17 |
+
|
18 |
+
# Set the working directory to the user's home directory
|
19 |
+
WORKDIR $HOME/app
|
20 |
+
|
21 |
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
|