From e29e4cc36d7c42d6fa10fe6ef77f47979f2b6f80 Mon Sep 17 00:00:00 2001 From: natcharacter <152225774+natcharacter@users.noreply.github.com> Date: Wed, 28 Feb 2024 12:38:05 -0500 Subject: [PATCH] =?UTF-8?q?A=20simple=20base=20usage=20that=20install=20th?= =?UTF-8?q?e=20dependencies=20necessary=20to=20use=20FT=E2=80=A6=20(#1036)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A simple base usage that install the dependencies necessary to use FTS and Hybrid search --------- Co-authored-by: Nat Roth Co-authored-by: Chang She <759245+changhiskhan@users.noreply.github.com> --- dockerfiles/Dockerfile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 dockerfiles/Dockerfile diff --git a/dockerfiles/Dockerfile b/dockerfiles/Dockerfile new file mode 100644 index 00000000..b314ff64 --- /dev/null +++ b/dockerfiles/Dockerfile @@ -0,0 +1,27 @@ +#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