-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (21 loc) · 753 Bytes
/
Dockerfile
File metadata and controls
27 lines (21 loc) · 753 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
# CLI-first image for OpenChronicle v2
FROM python:3.11-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
OC_DB_PATH=/app/data/openchronicle.db \
OC_CONFIG_DIR=/app/config \
OC_PLUGIN_DIR=/app/plugins \
OC_OUTPUT_DIR=/app/output \
OC_ASSETS_DIR=/app/assets
WORKDIR /app
# Copy project
COPY pyproject.toml README.md ./
COPY src ./src
COPY plugins ./plugins
COPY tools/docker/entrypoint.sh /app/entrypoint.sh
# Install with all provider extras and Discord
RUN pip install --no-cache-dir ".[openai,ollama,anthropic,groq,gemini,discord,mcp]"
# Prepare persistent mount points
RUN mkdir -p /app/data /app/config /app/plugins /app/output /app/assets \
&& chmod +x /app/entrypoint.sh
ENTRYPOINT ["/app/entrypoint.sh"]