mirror of
https://github.com/lancedb/lancedb.git
synced 2026-05-14 02:20:40 +00:00
This follows the Rust-side Tantivy removal by deleting the remaining Python Tantivy runtime, tests, and packaging references. It also turns the legacy Python-only Tantivy parameters into explicit errors and stops reading legacy `_indices/fts` directories so Python FTS is fully native-only.
28 lines
838 B
Docker
28 lines
838 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.12-slim-bookworm
|
|
|
|
# Install build dependencies in a single layer
|
|
RUN apt-get update && \
|
|
apt-get install -y --no-install-recommends \
|
|
curl \
|
|
build-essential \
|
|
protobuf-compiler \
|
|
git \
|
|
ca-certificates && \
|
|
apt-get clean && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
# Install Rust (pinned installer, non-interactive)
|
|
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable --profile minimal
|
|
|
|
# Set the environment variable for Rust
|
|
ENV PATH="/root/.cargo/bin:${PATH}"
|
|
|
|
# Verify installations
|
|
RUN python --version && \
|
|
rustc --version && \
|
|
protoc --version
|
|
|
|
RUN pip install --no-cache-dir lancedb
|