-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathDockerfile
40 lines (25 loc) · 1.28 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
FROM python:3.12.2
LABEL maintainer="[email protected]"
ENV streamlinkCommit=01d401f7db6dd44bed4f31b00817b241824aaa2a
#ENV streamlinkVersion=6.7.4
#ENV PATH "${HOME}/.local/bin:${PATH}"
#ADD https://github.com/streamlink/streamlink/releases/download/${streamlinkVersion}/streamlink-${streamlinkVersion}.tar.gz /opt/
#RUN apt-get update && apt-get install gosu
#RUN pip3 install versioningit
#RUN tar -xzf /opt/streamlink-${streamlinkVersion}.tar.gz -C /opt/ && \
# rm /opt/streamlink-${streamlinkVersion}.tar.gz && \
# cd /opt/streamlink-${streamlinkVersion}/ && \
# python3 setup.py install
RUN apt-get update && apt-get install gosu && apt-get install python3-pip -y
RUN pip3 install --upgrade git+https://github.com/streamlink/streamlink.git@${streamlinkCommit}
RUN echo 'export PATH="${HOME}/.local/bin:${PATH}"'
RUN mkdir /home/download
RUN mkdir /home/script
RUN mkdir /home/plugins
#RUN git clone https://github.com/Damianonymous/streamlink-plugins.git
#RUN cp /streamlink-plugins/*.py /home/plugins/
COPY ./streamlink-recorder.sh /home/script/
COPY ./entrypoint.sh /home/script
RUN ["chmod", "+x", "/home/script/entrypoint.sh"]
ENTRYPOINT [ "/home/script/entrypoint.sh" ]
CMD /bin/bash ./home/script/streamlink-recorder.sh ${streamOptions} ${streamLink} ${streamQuality} ${streamName}