/ docker / Dockerfile.chat
Dockerfile.chat
 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  # Install Python packages (using latest versions)
17  RUN pip install --no-cache-dir \
18      praisonai_tools \
19      "praisonai>=4.6.31" \
20      "praisonai[chat]" \
21      "embedchain[github,youtube]"
22  
23  # Copy application code
24  COPY . .
25  
26  # Set environment variables for directory management
27  ENV PRAISON_CONFIG_DIR=/root/.praison
28  ENV CHAINLIT_CONFIG_DIR=/root/.praison
29  ENV CHAINLIT_DB_DIR=/root/.praison
30  ENV DOCKER_CONTAINER=true
31  
32  # Default command (will be overridden by docker-compose)
33  CMD ["praisonai", "chat"]