Skip to content

Commit 3784745

Browse files
authored
install node.js in docker container (#87)
see yt-dlp/yt-dlp#15012 With the release of yt-dlp version 2025.11.12, external JavaScript runtime support has arrived. All users who intend to use yt-dlp with YouTube are strongly encouraged to install one of the supported JS runtimes.
1 parent 626cb94 commit 3784745

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,13 @@ ENV RATE_LIMIT_WINDOW_MINUTES=1
2020

2121
RUN apt-get update && \
2222
apt-get upgrade -y && \
23+
apt-get install -y curl ffmpeg unzip && \
24+
curl -o- https://fnm.vercel.app/install | bash
25+
SHELL ["/bin/bash", "--login", "-c"]
26+
RUN fnm install --lts && \
27+
node -v && \
28+
npm -v && \
2329
python -m pip install --upgrade pip && \
24-
apt-get install -y curl ffmpeg && \
2530
apt-get clean && rm -rf /var/lib/apt/lists/* && \
2631
mkdir /app
2732

0 commit comments

Comments
 (0)