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
|
|
|
COPY ["sources.py", "/app/sources.py"]
|
2021-05-09 16:49:40 +00:00
|
|
|
COPY ["index.html", "/app/index.html"]
|
2021-05-12 07:50:51 +00:00
|
|
|
COPY ["script.js", "/app/script.js"]
|
2021-05-06 13:23:43 +00:00
|
|
|
RUN ["chmod", "-R", "755", "/app"]
|
|
|
|
COPY ["tv.json", "/app/tv.json"]
|
2021-05-01 18:01:24 +00:00
|
|
|
RUN ["python3", "/app/sources.py"]
|
2021-05-06 13:23:43 +00:00
|
|
|
RUN ["rm", "/app/tv.json"]
|
|
|
|
RUN ["rm", "/app/sources.py"]
|
2021-04-30 08:49:10 +00:00
|
|
|
|
|
|
|
FROM scratch
|
|
|
|
COPY --from=base / /
|
|
|
|
USER 1444:1444
|
2021-05-06 13:23:43 +00:00
|
|
|
ENV ICECAST_SERVER=https://icecast.purser.it:7000
|
|
|
|
ENV STREAM_SERVER=https://stream.purser.it
|
2021-04-30 08:49:10 +00:00
|
|
|
ENTRYPOINT ["/app/stream.py"]
|