14 lines
508 B
Docker
14 lines
508 B
Docker
# Dockerfile for containerized yt-dlp
|
|
# This Dockerfile sets up a container with Python 3 and yt-dlp for downloading YouTube videos.
|
|
|
|
# Use the official Python 3 bookworm image as the base
|
|
FROM python:3-bookworm
|
|
|
|
# Update the package list and install ffmpeg for video processing
|
|
RUN apt update && apt install -y ffmpeg
|
|
|
|
# Download the latest version of yt-dlp from GitHub
|
|
RUN wget https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp
|
|
# Make the downloaded yt-dlp executable
|
|
RUN chmod +x ./yt-dlp
|