-
Notifications
You must be signed in to change notification settings - Fork 0
/
youtube-dl.dockerfile
42 lines (32 loc) · 2.3 KB
/
youtube-dl.dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#Setting ARCH type argument
#ARG ARCH
# Dockerfile YouTube-DL install (run from /port/docker/file)
FROM debian:bullseye-slim
#FROM debian:buster-slim
#Set Language and Location
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US:en
ENV LC_ALL=en_US.UTF-8
#Install Tools
RUN apt-get update -y && apt-get upgrade -y && apt-get install nano apt-utils locales -y --allow-unauthenticated && sed -i 's/^# *\(en_US.UTF-8\)/\1/' /etc/locale.gen && locale-gen && locale-gen en_US.UTF-8
RUN apt-get install curl apt-transport-https wget net-tools perl git -y --allow-unauthenticated && update-locale LANG=en_US.UTF-8 && update-locale LANGUAGE=en_US:en && update-locale LC_ALL=en_US.UTF-8
#Install YouTube-DL dependencies
RUN apt-get update -y && apt-get install -y --allow-unauthenticated build-essential net-tools libmp3lame-dev libvorbis-dev libtheora-dev libspeex-dev yasm pkg-config libx264-dev ffmpeg apache2 curl python3 python3-dev
#RUN apt-get update -y && apt-get install -y --allow-unauthenticated build-essential net-tools libmp3lame-dev libvorbis-dev libtheora-dev libspeex-dev yasm pkg-config libx264-dev ffmpeg apache2 curl python python-dev python-minimal python-pip python3 python3-dev python3-minimal python3-pip
##Install UDemy-DL dependencies
##RUN apt-get update -y && apt-get install -y --allow-unauthenticated install python3 python3-dev python3-minimal python3-pip libffi-dev libffi6 gcc && curl https://sh.rustup.rs -sSf | bash -s -- -y && echo 'source $HOME/.cargo/env' >> $HOME/.bashrc
#RUN apt-get update -y && apt-get install -y --allow-unauthenticated libffi-dev libffi6 gcc openssl libssl-dev python3 python3-dev python3-minimal python3-pip
#RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
#ENV PATH="/root/.cargo/bin:${PATH}"
#Get YouTube-DL
RUN curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl && chmod a+rx /usr/local/bin/youtube-dl
#Get yt-dlp
RUN curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/yt-dlp && chmod a+rx /usr/local/bin/yt-dlp
##Get UDemy-DL
#RUN git clone https://github.com/r0oth3x49/udemy-dl.git && cd udemy-dl && pip3 install -r requirements.txt
#Get youtube filelist
RUN touch /root/findYouTube.sh
#Health Check
HEALTHCHECK CMD curl --fail http://youtube.com/ || exit 1
#Starting container
ENTRYPOINT ["sh", "/root/findYouTube.sh"]