FROM python:3.13 # Install yt-dlp and dependencies RUN apt-get update && apt-get install -y ffmpeg curl && \ curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/yt-dlp && \ chmod a+rx /usr/local/bin/yt-dlp WORKDIR /app COPY backend/requirements.txt . RUN pip install -r requirements.txt RUN rm requirements.txt COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh RUN chmod a+rx /usr/local/bin/docker-entrypoint.sh ENTRYPOINT ["docker-entrypoint.sh"] CMD ["python", "backend/main.py"]