Add go2rtc to local services and add to s6

This commit is contained in:
Nick Mowen 2022-10-13 13:44:26 -06:00
parent 0aa5e3509f
commit fe5399d5f8
3 changed files with 10 additions and 1 deletions

View File

@ -119,7 +119,9 @@ ENV PATH=$PATH:/usr/lib/btbn-ffmpeg/bin
# install go2rtc
RUN wget -O go2rtc "https://github.com/AlexxIT/go2rtc/releases/download/v0.1-beta.8/go2rtc_linux_${TARGETARCH}" \
&& chmod +x go2rtc
&& chmod +x go2rtc \
&& mkdir -p /usr/local/go2rtc/sbin/ \
&& mv go2rtc /usr/local/sbin/go2rtc
COPY --from=nginx /usr/local/nginx/ /usr/local/nginx/

View File

@ -0,0 +1,5 @@
#!/usr/bin/execlineb -S1
if { s6-test ${1} -ne 0 }
if { s6-test ${1} -ne 256 }
s6-svscanctl -t /var/run/s6/services

View File

@ -0,0 +1,2 @@
#!/usr/bin/execlineb -P
/usr/local/go2rtc/sbin/go2rtc