Spaces:
Sleeping
Sleeping
| 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"] | |