Skip to content

Commit e911675

Browse files
committed
add structure for src containers
1 parent 0d5c0b4 commit e911675

File tree

4 files changed

+49
-3
lines changed

4 files changed

+49
-3
lines changed

agentic_rag/DEPLOY.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@
22

33
## TODOS
44

5+
- Multiple containers for different functions
6+
- Gradio
7+
- Agents / Inference
8+
- Database Access
59
- Hugging face token should be a secret
6-
- PVCs and deployments in separate files
7-
- multiple deployments/pods for different functions
8-
- Hugging Face Token optional
10+
- Liveness and Readiness
11+
- Use Load balancer instead of Gradio Live
12+
- Autoscaling
913

1014
## Deploy Infrastructure
1115

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM python:3.11-slim
2+
3+
WORKDIR /app
4+
5+
COPY requirements.txt .
6+
RUN pip install --no-cache-dir -r requirements.txt
7+
8+
COPY . .
9+
10+
# Use non-root user for security
11+
RUN useradd -m app
12+
USER app
13+
14+
CMD ["python", "app.py"]

agentic_rag/src/ui/Containerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM python:3.11-slim
2+
3+
WORKDIR /app
4+
5+
COPY requirements.txt .
6+
RUN pip install --no-cache-dir -r requirements.txt
7+
8+
COPY . .
9+
10+
# Use non-root user for security
11+
RUN useradd -m app
12+
USER app
13+
14+
CMD ["python", "app.py"]

agentic_rag/src/vector/Containerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM python:3.11-slim
2+
3+
WORKDIR /app
4+
5+
COPY requirements.txt .
6+
RUN pip install --no-cache-dir -r requirements.txt
7+
8+
COPY . .
9+
10+
# Use non-root user for security
11+
RUN useradd -m app
12+
USER app
13+
14+
CMD ["python", "app.py"]

0 commit comments

Comments
 (0)