GT AI OS Community v2.0.33 - Add NVIDIA NIM and Nemotron agents
- Updated python_coding_microproject.csv to use NVIDIA NIM Kimi K2 - Updated kali_linux_shell_simulator.csv to use NVIDIA NIM Kimi K2 - Made more general-purpose (flexible targets, expanded tools) - Added nemotron-mini-agent.csv for fast local inference via Ollama - Added nemotron-agent.csv for advanced reasoning via Ollama - Added wiki page: Projects for NVIDIA NIMs and Nemotron
This commit is contained in:
42
apps/tenant-backend/Dockerfile
Normal file
42
apps/tenant-backend/Dockerfile
Normal file
@@ -0,0 +1,42 @@
|
||||
# Tenant Backend Dockerfile
|
||||
FROM python:3.11-slim
|
||||
|
||||
# Build arg for dev dependencies (default: false for production)
|
||||
ARG INSTALL_DEV=false
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Install system dependencies for PostgreSQL compilation
|
||||
RUN apt-get update && apt-get install -y \
|
||||
gcc \
|
||||
g++ \
|
||||
curl \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Copy requirements (dev requirements may not exist in production builds)
|
||||
COPY requirements.txt .
|
||||
COPY requirements-dev.tx[t] ./
|
||||
|
||||
# Install Python dependencies
|
||||
# Dev dependencies only installed when INSTALL_DEV=true
|
||||
RUN pip install --no-cache-dir -r requirements.txt && \
|
||||
if [ "$INSTALL_DEV" = "true" ] && [ -f requirements-dev.txt ]; then \
|
||||
pip install --no-cache-dir -r requirements-dev.txt; \
|
||||
fi
|
||||
|
||||
# Copy application code
|
||||
COPY . .
|
||||
|
||||
# Create non-root user and data directory
|
||||
RUN useradd -m -u 1000 appuser && \
|
||||
mkdir -p /data && \
|
||||
chown -R appuser:appuser /app /data
|
||||
|
||||
USER appuser
|
||||
|
||||
# Expose port
|
||||
EXPOSE 8000
|
||||
|
||||
# Run the application with multiple workers for production
|
||||
# Use composite_app to enable Socket.IO routing via CompositeASGIRouter
|
||||
CMD ["uvicorn", "app.main:composite_app", "--host", "0.0.0.0", "--port", "8000", "--workers", "4"]
|
||||
Reference in New Issue
Block a user