Spaces:
Runtime error
Runtime error
Download rust/worker/Dockerfile from expressapi/chroma: direct link, hf CLI and curl.
- Browser
- Download file 568 Bytes
-
https://huggingface.co/spaces/expressapi/chroma/resolve/main/rust/worker/Dockerfile
- Command line
-
hf download hf://spaces/expressapi/chroma/rust/worker/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/expressapi/chroma/resolve/main/rust/worker/Dockerfile
568 Bytes
| FROM rust:1.74.1 as builder | |
| ARG CHROMA_KUBERNETES_INTEGRATION=0 | |
| ENV CHROMA_KUBERNETES_INTEGRATION $CHROMA_KUBERNETES_INTEGRATION | |
| WORKDIR / | |
| RUN git clone https://github.com/chroma-core/hnswlib.git | |
| WORKDIR /chroma/ | |
| COPY . . | |
| ENV PROTOC_ZIP=protoc-25.1-linux-x86_64.zip | |
| RUN curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v25.1/$PROTOC_ZIP \ | |
| && unzip -o $PROTOC_ZIP -d /usr/local bin/protoc \ | |
| && unzip -o $PROTOC_ZIP -d /usr/local 'include/*' \ | |
| && rm -f $PROTOC_ZIP | |
| RUN cargo build | |
| WORKDIR /chroma/rust/worker | |
| CMD ["cargo", "run"] | |