2021-05-23 19:48:10 +00:00
|
|
|
FROM alpine:edge as base
|
|
|
|
RUN ["apk", "add", "--no-cache", "inkscape"]
|
2021-05-19 13:54:42 +00:00
|
|
|
RUN ["mkdir", "-p", "/app/version"]
|
2021-05-19 08:40:18 +00:00
|
|
|
COPY ["tv.json", "/app/setup/tv.json"]
|
|
|
|
COPY ["backend/start.sh", "/app/start.sh"]
|
|
|
|
COPY ["backend/sources.py", "/app/setup/sources.py"]
|
|
|
|
COPY ["backend/stream.py", "/app/stream.py"]
|
2021-05-20 11:21:23 +00:00
|
|
|
COPY ["backend/stream_providers.py", "/app/stream_providers.py"]
|
2021-05-13 09:15:40 +00:00
|
|
|
COPY ["frontend/index.html", "/app/index.html"]
|
2021-05-23 19:48:10 +00:00
|
|
|
COPY ["frontend/favicon.svg", "/app/favicon.svg"]
|
2021-05-13 09:15:40 +00:00
|
|
|
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"]
|
2021-05-23 19:48:10 +00:00
|
|
|
RUN ["inkscape", "--export-area-page", "--export-width=256", "--export-height=256", "/app/favicon.svg", "--export-filename=/app/favicon.png"]
|
|
|
|
RUN ["rm", "/app/favicon.svg"]
|
|
|
|
|
|
|
|
FROM roypur/stream-runtime:latest as venv
|
|
|
|
COPY --from=base /app /app
|
2021-05-21 08:58:13 +00:00
|
|
|
RUN ["/app/venv/bin/python3", "/app/setup/sources.py"]
|
2021-05-19 08:40:18 +00:00
|
|
|
RUN ["rm", "-r", "/app/setup"]
|
2021-04-30 08:49:10 +00:00
|
|
|
|
|
|
|
FROM scratch
|
2021-05-23 19:48:10 +00:00
|
|
|
COPY --from=venv / /
|
2021-04-30 08:49:10 +00:00
|
|
|
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-05-19 08:40:18 +00:00
|
|
|
ENTRYPOINT ["/app/start.sh"]
|