/ docker / Dockerfile.praisonaiagents
Dockerfile.praisonaiagents
 1  FROM python:3.11-slim
 2  
 3  WORKDIR /app
 4  
 5  # Install system dependencies
 6  RUN apt-get update && apt-get install -y --no-install-recommends \
 7      gcc \
 8      python3-dev \
 9      curl \
10      git \
11      && rm -rf /var/lib/apt/lists/*
12  
13  # Create praison config directory
14  RUN mkdir -p /root/.praison
15  
16  # Copy praisonaiagents source
17  COPY src/praisonai-agents/ /app/praisonaiagents/
18  WORKDIR /app/praisonaiagents
19  
20  # Install praisonaiagents with all features (non-editable for production)
21  RUN pip install --no-cache-dir ".[all]"
22  
23  # Set environment variables for directory management
24  ENV PRAISON_CONFIG_DIR=/root/.praison
25  ENV CHAINLIT_CONFIG_DIR=/root/.praison
26  ENV CHAINLIT_DB_DIR=/root/.praison
27  ENV DOCKER_CONTAINER=true
28  
29  WORKDIR /app
30  
31  # Default command
32  CMD ["python", "-c", "import praisonaiagents; print('PraisonAI Agents installed successfully')"]