Dockerfile
FROM alpine RUN apk add -q --progress --update --no-cache ffmpeg python py-pip RUN pip install --upgrade pip RUN pip install youtube_dl COPY ./youtube-dl.conf /etc/youtube-dl.conf WORKDIR /media ENTRYPOINT ["youtube-dl"]
docker-compose.yml
version: '3' services: youtube-dl: build: . volumes: - ./download:/media
Run command
docker-compose build docker-compose run --rm youtube-dl -o "%(title)s.%(ext)s"