-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (21 loc) · 774 Bytes
/
Copy pathDockerfile
File metadata and controls
29 lines (21 loc) · 774 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
FROM python:3.11-slim
WORKDIR /app
# Install dependencies
COPY memory_server/requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install --no-cache-dir flask flask-cors gunicorn
# Copy application
COPY memory_server/ ./memory_server/
COPY scripts/ ./scripts/
COPY .memory/ ./.memory/
# Create memory directory if not exists
RUN mkdir -p .memory/team .memory/sessions .memory/chroma_db
# Environment
ENV PYTHONUNBUFFERED=1
# Expose port
EXPOSE 8765
# Health check
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD curl -f http://localhost:8765/health || exit 1
# Run with gunicorn for production
CMD ["gunicorn", "--bind", "0.0.0.0:8765", "--workers", "2", "--timeout", "120", "memory_server.server_http:app"]