2021-04-30 08:49:10 +00:00
|
|
|
FROM alpine:edge as base
|
2021-05-14 13:10:12 +00:00
|
|
|
RUN ["apk", "add", "--no-cache", "--repository", "https://dl-cdn.alpinelinux.org/alpine/edge/testing", "streamlink", "py3-tornado", "py3-aiohttp", "py3-aiohttp-socks"]
|
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-13 09:15:40 +00:00
|
|
|
COPY ["frontend/index.html", "/app/index.html"]
|
|
|
|
COPY ["frontend/script.js", "/app/script.js"]
|
|
|
|
COPY ["frontend/style.css", "/app/style.css"]
|
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"]
|