-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dockerfile
29 lines (23 loc) · 963 Bytes
/
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
FROM alpine:3.17
#* Define an arg variable
ARG TWITCH_USER
#* Upgrade the system and install dependencies
RUN apk add --no-cache --upgrade python3 tar wget bash jq rclone curl \
&& python3 -m ensurepip \
&& pip3 install --no-cache-dir --upgrade streamlink cloudscraper
#* Install youtubeuploader
RUN wget --progress=dot:giga https://github.com/porjo/youtubeuploader/releases/download/24.01/youtubeuploader_24.01_Linux_x86_64.tar.gz \
&& tar -xvf youtubeuploader_24.01_Linux_x86_64.tar.gz \
&& rm youtubeuploader_24.01_Linux_x86_64.tar.gz \
&& mv youtubeuploader /usr/local/bin/youtubeuploader
#* Copy the required files
COPY ${TWITCH_USER}.config /autoVOD/${TWITCH_USER}.config
COPY AutoVOD.sh /autoVOD/AutoVOD.sh
COPY client_secrets.json /autoVOD/client_secrets.json
COPY request.token /autoVOD/request.token
#* Permissions
RUN chmod +x /autoVOD/AutoVOD.sh
#* Start AutoVOD
WORKDIR /autoVOD
ENTRYPOINT ["/autoVOD/AutoVOD.sh"]
CMD ["noUsernamePassed"]