Skip to content

Commit 2a371c4

Browse files
authored
[Dev] Add Deno to Dockerfiles (#801)
* Added Deno to Dockerfiles * Updated yt-dlp source * Added unzip * Update deno directory * The ACTUAL deno install path this time. Christ, am I new here? * Linting
1 parent 076f2fe commit 2a371c4

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

docker/dev.Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ RUN echo "Building for ${TARGETPLATFORM:?}"
1313
RUN apt-get update -qq && \
1414
apt-get install -y inotify-tools curl git openssh-client jq \
1515
python3 python3-setuptools python3-wheel python3-dev pipx \
16-
python3-mutagen locales procps build-essential graphviz zsh
16+
python3-mutagen locales procps build-essential graphviz zsh unzip
1717

1818
# Install ffmpeg
1919
RUN export FFMPEG_DOWNLOAD=$(case ${TARGETPLATFORM:-linux/amd64} in \
@@ -32,8 +32,10 @@ RUN curl -sL https://deb.nodesource.com/setup_20.x -o nodesource_setup.sh && \
3232
# Install baseline Elixir packages
3333
mix local.hex --force && \
3434
mix local.rebar --force && \
35+
# Install Deno - required for YouTube downloads (See yt-dlp#14404)
36+
curl -fsSL https://deno.land/install.sh | DENO_INSTALL=/usr/local sh -s -- -y --no-modify-path && \
3537
# Download and update YT-DLP
36-
curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/yt-dlp && \
38+
curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_linux -o /usr/local/bin/yt-dlp && \
3739
chmod a+rx /usr/local/bin/yt-dlp && \
3840
yt-dlp -U && \
3941
# Install Apprise

docker/selfhosted.Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,17 @@ RUN apt-get update -y && \
9494
python3 \
9595
pipx \
9696
jq \
97+
# unzip is needed for Deno
98+
unzip \
9799
procps && \
100+
# Install Deno - required for YouTube downloads (See yt-dlp#14404)
101+
curl -fsSL https://deno.land/install.sh | DENO_INSTALL=/usr/local sh -s -- -y --no-modify-path && \
98102
# Apprise
99103
export PIPX_HOME=/opt/pipx && \
100104
export PIPX_BIN_DIR=/usr/local/bin && \
101105
pipx install apprise && \
102106
# yt-dlp
103-
curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/yt-dlp && \
107+
curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_linux -o /usr/local/bin/yt-dlp && \
104108
chmod a+rx /usr/local/bin/yt-dlp && \
105109
yt-dlp -U && \
106110
# Set the locale

0 commit comments

Comments
 (0)