YT-DL / Dockerfile
Hanzo03's picture
initial commit
e23b4a6
Raw
History Blame Contribute Delete
388 Bytes
FROM python:3.11-slim
# Install ffmpeg (required by yt-dlp to merge videos and extract MP3s)
RUN apt-get update && apt-get install -y ffmpeg && rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir uv && \
uv pip install --system --no-cache -r requirements.txt
COPY . .
EXPOSE 7860
CMD ["python", "main.py"]