2021-04-30 08:49:10 +00:00
|
|
|
FROM alpine:edge as base
|
2021-04-30 09:09:49 +00:00
|
|
|
RUN ["apk", "add", "--no-cache", "--repository", "https://dl-cdn.alpinelinux.org/alpine/edge/testing", "streamlink", "py3-tornado"]
|
2021-04-30 08:49:10 +00:00
|
|
|
RUN ["mkdir", "/app"]
|
|
|
|
COPY ["stream.py", "/app/stream.py"]
|
2021-05-01 18:01:24 +00:00
|
|
|
RUN ["chmod", "755", "/app/stream.py"]
|
|
|
|
|
|
|
|
FROM base as sources
|
|
|
|
COPY ["sources.py", "/app/sources.py"]
|
|
|
|
COPY ["tv.m3u8", "/app/tv.m3u8"]
|
|
|
|
RUN ["python3", "/app/sources.py"]
|
2021-04-30 08:49:10 +00:00
|
|
|
|
|
|
|
FROM scratch
|
|
|
|
COPY --from=base / /
|
2021-05-01 18:01:24 +00:00
|
|
|
COPY --from=sources /app/sources.m3u8 /app/sources.m3u8
|
2021-04-30 08:49:10 +00:00
|
|
|
|
|
|
|
USER 1444:1444
|
|
|
|
ENTRYPOINT ["/app/stream.py"]
|