| 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 . |
| 3 | FROM python:3.10-slim-buster |
| 4 | |
| 5 | # Install Rust |
| 6 | RUN 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 |
| 10 | ENV PATH="/root/.cargo/bin:${PATH}" |
| 11 | |
| 12 | # Install protobuf compiler |
| 13 | RUN apt-get install -y protobuf-compiler && \ |
| 14 | apt-get clean && \ |
| 15 | rm -rf /var/lib/apt/lists/* |
| 16 | |
| 17 | RUN apt-get -y update &&\ |
| 18 | apt-get -y upgrade && \ |
| 19 | apt-get -y install git |
| 20 | |
| 21 | |
| 22 | # Verify installations |
| 23 | RUN python --version && \ |
| 24 | rustc --version && \ |
| 25 | protoc --version |
| 26 | |
| 27 | RUN pip install tantivy lancedb |