1
0
Fork 0
livestream-tools/icedreammusic/ndi-feeder/Dockerfile

41 lines
1.1 KiB
Docker
Raw Normal View History

2021-02-28 17:04:41 +00:00
FROM busybox
WORKDIR /target/usr/local/bin/
COPY *.sh .
2021-02-28 17:04:41 +00:00
RUN chmod -v +x *.sh
###
2022-03-09 08:39:45 +00:00
FROM golang:1 AS fakesilence
WORKDIR /usr/src/fakesilence
ARG FAKESILENCE_VERSION=5d8d79af09df5c195908e004a4a3971942180901
RUN go install -v -ldflags "-s -w" github.com/icedream/fakesilence@"${FAKESILENCE_VERSION}"
RUN cp -v "$GOPATH"/bin/* /usr/local/bin
2022-03-09 08:39:45 +00:00
###
2021-02-28 17:04:41 +00:00
# yay build
FROM archlinux
WORKDIR /usr/src/ndi-feeder/
2021-02-28 17:04:41 +00:00
RUN pacman --noconfirm -Sy git sudo make binutils fakeroot base-devel
RUN echo "" && echo "%wheel ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
RUN useradd -UMr -d /usr/src/ndi-feeder/ -G wheel app
2021-02-28 17:04:41 +00:00
RUN chown -R app .
USER app
RUN git clone --recursive https://aur.archlinux.org/yay.git yay/
RUN cd yay && makepkg --noconfirm -si && cd .. && rm -r yay
RUN yay --noconfirm -S pod2man && sudo rm -r ~/.cache /var/cache/pacman/*
RUN yay --noconfirm -S ndi-advanced-sdk && sudo rm -r ~/.cache /var/cache/pacman/*
2021-02-28 17:04:41 +00:00
RUN yay --noconfirm -S ffmpeg-ndi && sudo rm -r ~/.cache /var/cache/pacman/*
2022-03-09 08:39:45 +00:00
COPY --from=fakesilence /usr/local/bin/fakesilence /usr/local/bin/
2021-02-28 17:04:41 +00:00
COPY --from=0 /target/ /
CMD ["ndi-feeder.sh"]
2021-02-28 17:04:41 +00:00
STOPSIGNAL SIGTERM