Skip to content

Commit 1969fa0

Browse files
committed
Bump streamlink to 7.1.3; Improve Dockerfile
Group things together and don't make multiple RUN commands to reduce the number of layers.
1 parent 6642eba commit 1969fa0

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

Dockerfile

+10-14
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,19 @@
11
FROM python:3.13.2-alpine3.21
22

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
86

7+
COPY entrypoint.sh /
98
COPY twitch-recorder.py /opt/
109

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
1316

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
2017
USER $UNAME
21-
2218
ENTRYPOINT ["/entrypoint.sh"]
2319
CMD ["/sbin/tini", "--", "python", "/opt/twitch-recorder.py"]

0 commit comments

Comments
 (0)