File tree Expand file tree Collapse file tree 4 files changed +49
-3
lines changed Expand file tree Collapse file tree 4 files changed +49
-3
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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" ]
Original file line number Diff line number Diff line change 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" ]
Original file line number Diff line number Diff line change 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" ]
You can’t perform that action at this time.
0 commit comments