-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile.sqlite_version
More file actions
30 lines (23 loc) · 897 Bytes
/
Dockerfile.sqlite_version
File metadata and controls
30 lines (23 loc) · 897 Bytes
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
FROM python:3.12-slim
WORKDIR /app
# Install dependencies for FAISS, then remove build tools
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Install Python dependencies and clean up build tools
COPY requirements.sqlite.txt requirements.txt
RUN pip install --no-cache-dir -r requirements.txt \
&& apt-get remove -y build-essential \
&& apt-get autoremove -y \
&& apt-get clean
# Copy only essential application code
COPY src/ src/
# Create a volume for persistent storage
VOLUME /app/data
# Set environment variables
ENV PYTHONUNBUFFERED=1
ENV MCP_DATA_DIR=/app/data
ENV OLLAMA_API_URL=http://host.docker.internal:11434
ENV OLLAMA_EMBEDDING_MODEL=nomic-embed-text:v1.5
# Run the SQLite memory server using stdio transport (for Claude Desktop integration)
CMD ["python3", "src/sqlite_memory_server.py"]