mirror of
https://github.com/lancedb/lancedb.git
synced 2025-12-22 21:09:58 +00:00
A simple base usage that install the dependencies necessary to use FTS and Hybrid search --------- Co-authored-by: Nat Roth <natroth@Nats-MacBook-Pro.local> Co-authored-by: Chang She <759245+changhiskhan@users.noreply.github.com>
28 lines
726 B
Docker
28 lines
726 B
Docker
#Simple base dockerfile that supports basic dependencies required to run lance with FTS and Hybrid Search
|
|
#Usage docker build -t lancedb:latest -f Dockerfile .
|
|
FROM python:3.10-slim-buster
|
|
|
|
# Install Rust
|
|
RUN apt-get update && apt-get install -y curl build-essential && \
|
|
curl https://sh.rustup.rs -sSf | sh -s -- -y
|
|
|
|
# Set the environment variable for Rust
|
|
ENV PATH="/root/.cargo/bin:${PATH}"
|
|
|
|
# Install protobuf compiler
|
|
RUN apt-get install -y protobuf-compiler && \
|
|
apt-get clean && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN apt-get -y update &&\
|
|
apt-get -y upgrade && \
|
|
apt-get -y install git
|
|
|
|
|
|
# Verify installations
|
|
RUN python --version && \
|
|
rustc --version && \
|
|
protoc --version
|
|
|
|
RUN pip install tantivy lancedb
|