add yt-restreamer and build prod docker image
This commit is contained in:
7
.build/prod/compose.yml
Normal file
7
.build/prod/compose.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
services:
|
||||
yt-restream:
|
||||
build:
|
||||
context: ../../
|
||||
dockerfile: .build/prod/yt-restream.Dockerfile
|
||||
hostname: yt-restream
|
||||
image: git.shihaam.dev/sarlink/tv/yt-restream
|
||||
12
.build/prod/yt-restream.Dockerfile
Normal file
12
.build/prod/yt-restream.Dockerfile
Normal file
@@ -0,0 +1,12 @@
|
||||
FROM debian:latest
|
||||
|
||||
WORKDIR /root/
|
||||
|
||||
RUN apt update \
|
||||
&& apt install -y python3-pip curl ffmpeg \
|
||||
&& pip install yt-dlp --break-system-packages
|
||||
|
||||
COPY yt-restream.sh .
|
||||
WORKDIR /var/www/html
|
||||
|
||||
CMD python3 -m http.server -d live/ & /root/yt-restream.sh
|
||||
Reference in New Issue
Block a user