forked from feather-store/feather
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
44 lines (34 loc) · 1.02 KB
/
Dockerfile
File metadata and controls
44 lines (34 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Feather DB Docker Image
# Usage: docker run -it yourusername/feather-db python
FROM python:3.11-slim
LABEL maintainer="[email protected]"
LABEL description="Feather DB - Fast, lightweight vector database"
LABEL version="0.1.0"
# Install build dependencies
RUN apt-get update && apt-get install -y \
g++ \
make \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Copy source code
COPY src/ ./src/
COPY bindings/ ./bindings/
COPY include/ ./include/
COPY setup.py .
COPY pyproject.toml .
COPY README.md .
COPY LICENSE .
# Build C++ core
RUN g++ -O3 -std=c++17 -fPIC -c src/feather_core.cpp -o feather_core.o && \
ar rcs libfeather.a feather_core.o
# Install Python dependencies and package
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir pybind11 numpy && \
pip install --no-cache-dir .
# Create data directory
WORKDIR /data
# Test installation
RUN python -c "import feather_db; print('✓ Feather DB installed successfully')"
# Default command
CMD ["python"]