2022-11-02 14:53:24 +00:00
|
|
|
FROM ubuntu:jammy
|
2019-07-22 02:02:17 +00:00
|
|
|
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
ENV HOME /root
|
|
|
|
|
|
|
|
RUN apt update && apt -y upgrade
|
2022-11-02 14:53:24 +00:00
|
|
|
RUN apt install -y python3-pip ffmpeg locales curl
|
|
|
|
RUN echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen && \
|
|
|
|
locale-gen && \
|
|
|
|
update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
|
2019-07-22 02:02:17 +00:00
|
|
|
|
2019-07-22 02:48:52 +00:00
|
|
|
ENV LANG en_US.UTF-8
|
|
|
|
ENV LANGUAGE en_US:en
|
|
|
|
ENV LC_ALL en_US.UTF-8
|
2019-07-22 02:02:17 +00:00
|
|
|
|
2022-10-31 14:57:30 +00:00
|
|
|
RUN pip3 install yt-dlp
|
2019-07-22 02:48:52 +00:00
|
|
|
ADD youtube-dl.conf /etc/youtube-dl.conf
|
2022-11-02 14:53:24 +00:00
|
|
|
ADD run.sh /usr/local/bin/run.sh
|
|
|
|
|
|
|
|
VOLUME /output
|
2019-07-22 02:02:17 +00:00
|
|
|
|
2019-07-22 02:48:52 +00:00
|
|
|
USER nobody:nogroup
|
|
|
|
WORKDIR /tmp
|
2022-11-02 14:53:24 +00:00
|
|
|
CMD /bin/bash /usr/local/bin/run.sh
|
|
|
|
ADD videolist.txt /etc/videolist.txt
|