FROM python:3.11-slim WORKDIR /app # Install system dependencies RUN apt-get update && apt-get install -y --no-install-recommends \ build-essential \ && rm -rf /var/lib/apt/lists/* # Install dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy source code COPY . . # Expose port for Webhook EXPOSE 8000 # Make sure scripts are executable RUN chmod +x start.sh # Start both worker and webhook CMD ["./start.sh"]