yt-dlp-docker/Dockerfile

18 lines
399 B
Docker

FROM ubuntu:24.04 as base
RUN apt-get update && \
apt-get install -y wget python3 ffmpeg && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
WORKDIR /tmp/yt-dlp
RUN wget -O yt-dlp --progress=dot:giga "https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp"
RUN cp /tmp/yt-dlp/yt-dlp /usr/bin/yt-dlp && \
chmod a+x /usr/bin/yt-dlp
WORKDIR /app
ENTRYPOINT ["yt-dlp"]
CMD ["--help"]