forked from develon2015/Youtube-dl-REST
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
19 lines (19 loc) · 658 Bytes
/
Copy pathDockerfile
File metadata and controls
19 lines (19 loc) · 658 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM node:18.14
RUN apt update
RUN \
apt install -y git ffmpeg && \
wget https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -O /usr/bin/yt-dlp && \
chmod +x /usr/bin/yt-dlp && \
git clone https://github.com/develon2015/Youtube-dl-REST /Youtube-dl-REST && \
cd /Youtube-dl-REST && \
npm i
RUN curl https://pyenv.run | bash
RUN ~/.pyenv/bin/pyenv install 3.10.13
RUN ~/.pyenv/bin/pyenv global 3.10.13
RUN ln /root/.pyenv/shims/python /usr/bin/python
RUN rm -rf /usr/bin/python3 && ln /root/.pyenv/shims/python /usr/bin/python3
RUN python --version
RUN yt-dlp --version
WORKDIR /Youtube-dl-REST
EXPOSE 80
CMD npm run start