This commit is contained in:
2022-11-02 07:53:24 -07:00
parent 0844ea5d2f
commit b89e4090ba
5 changed files with 140 additions and 73 deletions

View File

@@ -1,11 +1,13 @@
FROM ubuntu:bionic
FROM ubuntu:jammy
ENV DEBIAN_FRONTEND noninteractive
ENV HOME /root
RUN apt update && apt -y upgrade
RUN apt install -y python3-pip ffmpeg locales
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
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
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
@@ -13,8 +15,11 @@ ENV LC_ALL en_US.UTF-8
RUN pip3 install yt-dlp
ADD youtube-dl.conf /etc/youtube-dl.conf
ADD entrypoint.sh /usr/local/bin/entrypoint.sh
ADD run.sh /usr/local/bin/run.sh
VOLUME /output
USER nobody:nogroup
WORKDIR /tmp
CMD /bin/bash /usr/local/bin/entrypoint.sh
CMD /bin/bash /usr/local/bin/run.sh
ADD videolist.txt /etc/videolist.txt