Add deno support

This commit is contained in:
Totonyus 2025-11-11 10:04:47 +01:00
parent 99619c6277
commit 2305cdd3d1
1 changed files with 8 additions and 3 deletions

View File

@ -14,14 +14,19 @@ COPY params/*.py params/*.ini params/userscript.js params/hooks_requirements ./s
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 xz-utils -y && apt-get autoremove && apt-get -y clean && rm -rf /var/lib/apt/lists/*
RUN apt update && apt install wget unzip xz-utils -y && apt-get autoremove && apt-get -y clean && rm -rf /var/lib/apt/lists/*
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 && \
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 && \
pip3 install --disable-pip-version-check -q --root-user-action=ignore -r pip_requirements
rm /ffmpeg.tar.xz /tmp/ffmpeg-* -rf
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
RUN pip3 install --disable-pip-version-check -q --root-user-action=ignore -r pip_requirements
ENTRYPOINT ["/app/entrypoint.sh"]