Elffuss BraidHub

kikocis/lancedb public

main · 726 BRawPermalink
1#Simple base dockerfile that supports basic dependencies required to run lance with FTS and Hybrid Search
2#Usage docker build -t lancedb:latest -f Dockerfile .
3FROM python:3.10-slim-buster
4
5# Install Rust
6RUN apt-get update && apt-get install -y curl build-essential && \
7 curl https://sh.rustup.rs -sSf | sh -s -- -y
8
9# Set the environment variable for Rust
10ENV PATH="/root/.cargo/bin:${PATH}"
11
12# Install protobuf compiler
13RUN apt-get install -y protobuf-compiler && \
14 apt-get clean && \
15 rm -rf /var/lib/apt/lists/*
16
17RUN apt-get -y update &&\
18 apt-get -y upgrade && \
19 apt-get -y install git
20
21
22# Verify installations
23RUN python --version && \
24 rustc --version && \
25 protoc --version
26
27RUN pip install tantivy lancedb