tei / Dockerfile
nsarrazin's picture
switch permissions
8ed352c unverified
raw
history blame
451 Bytes
FROM ghcr.io/huggingface/text-embeddings-inference:1.2.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
ENTRYPOINT ["text-embeddings-router", "--model-id", "jinaai/jina-embeddings-v2-base-en", "--hf-api-token", "${HF_TOKEN}", "--api-key", "${HF_TOKEN}"]