FROM python:3.10-slim # Install required system packages RUN apt-get update && apt-get install -y \ curl git tmux ffmpeg aria2 \ libmagic-dev build-essential \ && rm -rf /var/lib/apt/lists/* # Clone your repo during build RUN git clone https://github.com/sanch1tt/ML.git /app WORKDIR /app # Set full permissions RUN chmod -R 777 /app # Remove sabnzbdapi to avoid error RUN sed -i '/sabnzbdapi/d' requirements.txt # Install Python dependencies RUN pip install --no-cache-dir -r requirements.txt # Add entrypoint script COPY start.sh /start.sh RUN chmod +x /start.sh EXPOSE 7860 CMD ["/start.sh"]