2021-10-12 02:44:33 +02:00
|
|
|
FROM archlinux:latest
|
|
|
|
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
ENV UNAME user
|
|
|
|
|
|
|
|
RUN useradd -u 1001 -m -d /home/user -s /bin/sh user && \
|
|
|
|
usermod -aG audio user
|
|
|
|
RUN echo "user ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
|
|
|
RUN echo "root ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
|
|
|
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
|
|
|
|
|
|
|
|
RUN pacman -Syud --noconfirm \
|
|
|
|
base-devel git \
|
2022-10-27 23:10:25 +02:00
|
|
|
nodejs yarn \
|
2021-10-12 02:44:33 +02:00
|
|
|
pulseaudio \
|
|
|
|
mpv rtmpdump aria2
|
|
|
|
|
|
|
|
RUN mkdir /opt/ytdl && chown user:user /opt/ytdl
|
|
|
|
USER user
|
|
|
|
RUN git clone https://aur.archlinux.org/yt-dlp.git /opt/ytdl && \
|
|
|
|
cd /opt/ytdl && makepkg -sci --noconfirm && sudo ln -s /usr/bin/yt-dlp /usr/bin/youtube-dl
|
|
|
|
USER root
|
|
|
|
|
|
|
|
COPY package*.json ./
|
2022-10-27 23:10:25 +02:00
|
|
|
RUN yarn install
|
2021-10-12 02:44:33 +02:00
|
|
|
|
|
|
|
COPY . .
|
|
|
|
RUN chmod +x run.sh
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CMD [ "./run.sh" ]
|