forked from sandro1123/mimir-memory
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.lean
More file actions
36 lines (28 loc) · 1.26 KB
/
Copy pathDockerfile.lean
File metadata and controls
36 lines (28 loc) · 1.26 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
# syntax=docker/dockerfile:1
# Mímir v12 Insight — lean runtime image (no embeddings, no chromadb).
# For full image with vector search, use the canonical Dockerfile.
# Registry: docker pull ghcr.io/<org>/mimir:v12.0.0
FROM python:3.11-slim AS runtime
WORKDIR /app
COPY pyproject.toml README.md requirements-lean.txt ./
COPY mimir_v8 ./mimir_v8
COPY hermes-plugin ./hermes-plugin
RUN python3 -m venv /opt/mimir && \
/opt/mimir/bin/pip install --no-cache-dir --upgrade pip && \
/opt/mimir/bin/pip install --no-cache-dir --index-url https://pypi.tuna.tsinghua.edu.cn/simple -r requirements-lean.txt && \
/opt/mimir/bin/pip install --no-cache-dir --index-url https://pypi.tuna.tsinghua.edu.cn/simple . && \
rm -rf /root/.cache/pip
ENV MIMIR_V8_DATA_DIR=/data/canonical.db \
MIMIR_V8_TOKEN_FILE=/data/api_tokens.json \
MIMIR_V8_COLLECTION=mimir_v12_prod \
MIMIR_V9_KNOWLEDGE_LAYERS=memory,learning,wiki \
HF_HUB_OFFLINE=1 \
TRANSFORMERS_OFFLINE=1 \
TOKENIZERS_PARALLELISM=false \
PATH=/opt/mimir/bin:$PATH
VOLUME ["/data"]
EXPOSE 8456
HEALTHCHECK --interval=30s --timeout=10s --retries=3 \
CMD python -c "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8456/health')"
ENTRYPOINT ["mimir-server"]
CMD ["--disable-vector"]