-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (19 loc) · 742 Bytes
/
Copy pathDockerfile
File metadata and controls
25 lines (19 loc) · 742 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
# Minimal image
FROM python:3.12-slim
WORKDIR /app
# Installed before copying the rest of the source so Docker can cache
# this (slow) layer and skip reinstalling dependencies on every code
# change — only requirements.txt changing invalidates it.
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY app/ app/
COPY run.py .
# Where SQLite lives, and where RAG source files get dropped in. Mount
# volumes here (see docker-compose.yml) so both survive container
# restarts/rebuilds — knowledge/ especially, since it's the actual
# content an admin would drop files into.
VOLUME ["/app/data", "/app/knowledge"]
ENV DATA_DIR=/app/data
ENV KNOWLEDGE_DIR=/app/knowledge
EXPOSE 8000
CMD ["python", "run.py"]