Install latest yt-dlp release in Docker image

This commit is contained in:
Dymas
2026-05-21 19:05:21 +02:00
parent 9648b4f6e4
commit bb4983c928
4 changed files with 13 additions and 3 deletions
+5
View File
@@ -3,6 +3,7 @@ FROM python:3.12-slim
ARG ANI_CLI=https://github.com/pystardust/ani-cli.git
ARG ANI_CLI_BRANCH=master
ARG ANI_CLI_WEB=https://gitea.coreplay.eu/Dymas/ani-cli-web.git
ARG YT_DLP_RELEASE_URL=https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp
ENV DEBIAN_FRONTEND=noninteractive \
ANI_CLI_REPO=${ANI_CLI} \
@@ -41,6 +42,10 @@ RUN git clone --depth 1 --branch "${ANI_CLI_BRANCH}" "${ANI_CLI}" /tmp/ani-cli-s
esac \
&& rm -rf /tmp/ani-cli-src
RUN curl -fL "${YT_DLP_RELEASE_URL}" -o /usr/local/bin/yt-dlp \
&& chmod 0755 /usr/local/bin/yt-dlp \
&& yt-dlp --version
RUN git clone --depth 1 "${ANI_CLI_WEB}" /app \
&& rm -rf /app/.git