-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (27 loc) · 1.19 KB
/
Copy pathDockerfile
File metadata and controls
40 lines (27 loc) · 1.19 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
FROM python:3.12-alpine@sha256:6d43704baacd1bfbe7c295d7f13079d5d8104ed33568873133f8fc69980419df AS builder
WORKDIR /app
# Copy project files
COPY pyproject.toml README.md ./
COPY memorymaster/ ./memorymaster/
# Install dependencies with extras
RUN pip install --no-cache-dir ".[mcp,qdrant,security]"
FROM python:3.12-alpine@sha256:6d43704baacd1bfbe7c295d7f13079d5d8104ed33568873133f8fc69980419df
WORKDIR /app
# Copy installed packages from builder
COPY --from=builder /usr/local/lib/python3.12/site-packages /usr/local/lib/python3.12/site-packages
# Copy binaries from builder
COPY --from=builder /usr/local/bin/memorymaster* /usr/local/bin/
# Copy source code
COPY memorymaster/ ./memorymaster/
COPY pyproject.toml README.md ./
# Environment variables
ENV MEMORYMASTER_DEFAULT_DB=/data/memorymaster.db
ENV MEMORYMASTER_WORKSPACE=/data
# Volume for data persistence
VOLUME /data
# Expose dashboard port
EXPOSE 8765
# The image defaults to the HTTP dashboard. The stdio and authenticated HTTP
# MCP services remain explicit alternatives: memorymaster-mcp and
# memorymaster-mcp-http.
CMD ["memorymaster-dashboard", "--host", "0.0.0.0", "--port", "8765", "--db", "/data/memorymaster.db", "--workspace", "/data"]