-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathDockerfile
25 lines (18 loc) · 899 Bytes
/
Dockerfile
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
# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
# Start with an official Python image with a version >= 3.10
FROM python:3.10-slim
# Set the working directory in the container
WORKDIR /app
# Copy the requirements.txt file to the container
COPY requirements.txt .
# Install the dependencies specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application code to the container
COPY src/mcp_memory_service /app/src/mcp_memory_service
# Set environment variables if needed. Adjust paths to point to default container locations.
ENV MCP_MEMORY_CHROMA_PATH=/app/chroma_db \
MCP_MEMORY_BACKUPS_PATH=/app/backups
# Create necessary directories for ChromaDB and backups
RUN mkdir -p /app/chroma_db /app/backups
# Specify the command to run the server
ENTRYPOINT ["python", "src/mcp_memory_service/server.py"]