Skip to content

Commit

Permalink
feat: update dockerfile from nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiasghodsian committed Aug 16, 2024
1 parent 8667976 commit a3ca9dd
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ LABEL org.opencontainers.image.source="https://github.com/mattiasghodsian/Minizo
LABEL org.opencontainers.image.description="Docker image for Minizo"
LABEL org.opencontainers.image.licenses="GPL-3.0"

ARG YTDLP_VERSION=2024.08.06

# Update and install needed packages
RUN apt-get update && \
apt-get install -y git make python3 python3-pip python3-venv zip pandoc ffmpeg && \
Expand All @@ -16,12 +18,9 @@ RUN apt-get update && \
# Create a symlink to specify the Python interpreter
RUN ln -s /usr/bin/python3 /usr/bin/python

# Clone & Compile youtube-dl
RUN git clone https://github.com/ytdl-org/youtube-dl.git /tmp/youtube-dl
RUN cd /tmp/youtube-dl && python setup.py install && make
RUN cp /tmp/youtube-dl/bin/youtube-dl /usr/bin/youtube-dl
RUN chmod a+rx /usr/bin/youtube-dl
RUN youtube-dl --version
# Install yt-dlp
RUN wget -O /usr/bin/yt-dlp "https://github.com/yt-dlp/yt-dlp/releases/download/${YTDLP_VERSION}/yt-dlp_linux" && \
chmod a+rx /usr/bin/yt-dlp

# Create a virtual environment
RUN python3 -m venv /venv
Expand Down

0 comments on commit a3ca9dd

Please sign in to comment.