FROM python:3.9-slim # Set working directory WORKDIR /app # Copy requirements and install dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy model files COPY . . # Expose port EXPOSE 8000 # Add labels for metadata LABEL maintainer="LISA Team" LABEL description="LISA AI - Developed in Kenya, Africa" LABEL version="3.5" LABEL origin="Kenya, East Africa" # Set environment variables ENV PYTHONPATH=/app ENV LISA_MODEL_PATH=/app # Health check HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 \ CMD curl -f http://localhost:8000/ || exit 1 # Run the application CMD ["python", "deploy.py", "--host", "0.0.0.0", "--port", "8000"]