FROM python:3.11-slim # Install system dependencies for AI processing RUN apt-get update && apt-get install -y ffmpeg libsm6 libxext6 libmagic1 && rm -rf /var/lib/apt/lists/* WORKDIR /app # Copy backend requirements COPY backend/requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy backend code COPY backend /app/backend WORKDIR /app/backend # Set environment variables ENV PYTHONUNBUFFERED=1 # Make script executable RUN chmod +x start.sh # Start both Celery and FastAPI CMD ["bash", "start.sh"]