File tree 1 file changed +10
-14
lines changed
1 file changed +10
-14
lines changed Original file line number Diff line number Diff line change 1
1
FROM python:3.13.2-alpine3.21
2
2
3
- RUN apk add --no-cache tini~=0.19.0
4
-
5
- RUN apk add --no-cache ffmpeg~=6.1
6
-
7
- RUN python -m pip install --no-cache-dir --upgrade streamlink==7.1.2
3
+ ARG UNAME=user
4
+ ARG UID=1000
5
+ ARG GID=1000
8
6
7
+ COPY entrypoint.sh /
9
8
COPY twitch-recorder.py /opt/
10
9
11
- COPY entrypoint.sh /
12
- RUN chmod 755 /entrypoint.sh
10
+ RUN apk add --no-cache ffmpeg~=6.1 tini~=0.19.0 && \
11
+ python -m pip install --no-cache-dir --upgrade streamlink==7.1.3 && \
12
+ chmod 755 /entrypoint.sh && \
13
+ addgroup -g "$GID" "$UNAME" && \
14
+ adduser -D -u "$UID" -G "$UNAME" -s /bin/bash "$UNAME" && \
15
+ chown -R "$UID:$GID" /opt
13
16
14
- ARG UNAME=user
15
- ARG UID=1000
16
- ARG GID=1000
17
- RUN addgroup -g $GID $UNAME
18
- RUN adduser -D -u $UID -G $UNAME -s /bin/bash $UNAME
19
- RUN chown -R $UID:$GID /opt
20
17
USER $UNAME
21
-
22
18
ENTRYPOINT ["/entrypoint.sh" ]
23
19
CMD ["/sbin/tini" , "--" , "python" , "/opt/twitch-recorder.py" ]
You can’t perform that action at this time.
0 commit comments