2025-07-02 10:33:55 -07:00
|
|
|
# Dockerfile for containerized yt-dlp
|
|
|
|
# This Dockerfile sets up a container with Python 3 and yt-dlp for downloading YouTube videos.
|
2025-07-02 06:56:23 -07:00
|
|
|
|
2025-07-02 10:33:55 -07:00
|
|
|
# Use the official Python 3 bookworm image as the base
|
2025-07-02 06:34:50 -07:00
|
|
|
FROM python:3-bookworm
|
|
|
|
|
2025-07-02 10:33:55 -07:00
|
|
|
# Update the package list and install ffmpeg for video processing
|
2025-07-02 07:31:38 -07:00
|
|
|
RUN apt update && apt install -y ffmpeg
|
|
|
|
|
2025-07-02 10:33:55 -07:00
|
|
|
# Download the latest version of yt-dlp from GitHub
|
2025-07-02 06:34:50 -07:00
|
|
|
RUN wget https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp
|
2025-07-02 10:33:55 -07:00
|
|
|
# Make the downloaded yt-dlp executable
|
2025-07-02 06:34:50 -07:00
|
|
|
RUN chmod +x ./yt-dlp
|