Spaces:
Sleeping
Sleeping
Download Dockerfile from funland/embed-text: direct link, hf CLI and curl.
- Browser
- Download file 465 Bytes
-
https://huggingface.co/spaces/funland/embed-text/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/funland/embed-text/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/funland/embed-text/resolve/main/Dockerfile
465 Bytes
| 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"] | |