From efe0b467efe3733448cb9e8c145a5bac0e104649 Mon Sep 17 00:00:00 2001 From: Totonyus Date: Fri, 21 Nov 2025 14:44:36 +0100 Subject: [PATCH] Add full deno support (tested) --- dockerfile | 7 +++++++ entrypoint.sh | 4 ++-- pip_requirements | 3 ++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/dockerfile b/dockerfile index 950dcef..6c3b100 100644 --- a/dockerfile +++ b/dockerfile @@ -16,6 +16,7 @@ COPY params/params_docker.ini ./setup/params.ini RUN if [ "$TARGET_ARCH" = "arm" ] ; then apt update && apt install gcc python3-dev -y; fi RUN apt update && apt install wget unzip xz-utils -y && apt-get autoremove && apt-get -y clean && rm -rf /var/lib/apt/lists/* +# FFmpeg installation RUN ARCH=$(arch | sed s/aarch64/linuxarm64/ | sed s/x86_64/linux64/) && \ wget https://github.com/yt-dlp/FFmpeg-Builds/releases/download/latest/ffmpeg-master-latest-${ARCH}-gpl.tar.xz -O /ffmpeg.tar.xz && \ tar -xf /ffmpeg.tar.xz -C /tmp && \ @@ -23,10 +24,16 @@ install --mode=777 /tmp/ffmpeg-*/bin/ffmpeg /usr/bin && \ install --mode=777 /tmp/ffmpeg-*/bin/ffprobe /usr/bin && \ rm /ffmpeg.tar.xz /tmp/ffmpeg-* -rf +# Deno installation RUN wget https://github.com/denoland/deno/releases/latest/download/deno-x86_64-unknown-linux-gnu.zip -O /tmp/deno.zip && \ unzip /tmp/deno.zip -d /tmp && install --mode 777 /tmp/deno /usr/bin && \ rm /tmp/deno.zip -rf +# Denort installation +RUN wget https://github.com/denoland/deno/releases/latest/download/denort-aarch64-unknown-linux-gnu.zip -O /tmp/denort.zip && \ +unzip /tmp/denort.zip -d /tmp && install --mode 777 /tmp/denort /usr/bin && \ +rm /tmp/denort.zip -rf + RUN pip3 install --disable-pip-version-check -q --root-user-action=ignore -r pip_requirements ENTRYPOINT ["/app/entrypoint.sh"] diff --git a/entrypoint.sh b/entrypoint.sh index 4e1ed1f..a2d1ff3 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -27,10 +27,10 @@ fi if [ "$FORCE_YTDLP_VERSION" == "" ]; then echo --- Upgrade yt-dlp to the latest version --- - pip3 install yt-dlp --upgrade --disable-pip-version-check -q --root-user-action=ignore + pip3 install yt-dlp yt-dlp-ejs --upgrade --disable-pip-version-check -q --root-user-action=ignore else echo --- Force yt-dlp version $FORCE_YTDLP_VERSION --- - pip3 install --disable-pip-version-check -q --root-user-action=ignore yt-dlp==$FORCE_YTDLP_VERSION --force-reinstall + pip3 install --disable-pip-version-check -q --root-user-action=ignore yt-dlp==$FORCE_YTDLP_VERSION yt-dlp-ejs --force-reinstall fi echo --- Installing hooks requirements --- diff --git a/pip_requirements b/pip_requirements index c6c64ba..43834e2 100644 --- a/pip_requirements +++ b/pip_requirements @@ -10,4 +10,5 @@ rq supervisor tinydb uvicorn -yt-dlp \ No newline at end of file +yt-dlp +yt-dlp-ejs \ No newline at end of file