Fetch youtube-dl from github releases

This commit is contained in:
Johannes Zellner 2024-12-20 10:55:14 +01:00 committed by Girish Ramakrishnan
parent c4f5594a6b
commit e4be0426bf

View file

@ -23,7 +23,10 @@ RUN ln -sf /app/data/production.yaml /app/code/server/config/production.yaml &&
ln -sf /app/data/local-production.json /app/code/server/config/local-production.json
# youtube-dl
RUN curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl && chmod +x /usr/local/bin/youtube-dl
# renovate: datasource=github-releases depName=ytdl-org/youtube-dl versioning=loose extractVersion=^(?<version>.+)$
ARG YOUTUBE_DL_VERSION=2021.12.17
RUN curl -L https://github.com/ytdl-org/youtube-dl/releases/download/${YOUTUBE_DL_VERSION}/youtube-dl -o /usr/local/bin/youtube-dl && chmod +x /usr/local/bin/youtube-dl
# required when installing plugins/themes that use node-gyp
RUN rm -rf /home/cloudron/.cache && ln -s /run/peertube/cache /home/cloudron/.cache && \