stream-api/Dockerfile

31 lines
1.2 KiB
Docker
Raw Permalink Normal View History

FROM roypur/stream-build:latest as base
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/style.js", "/app/setup/style.js"]
2021-05-19 08:40:18 +00:00
COPY ["backend/stream.py", "/app/stream.py"]
2022-01-30 12:15:42 +00:00
COPY ["backend/config.py", "/app/config.py"]
2021-09-05 12:55:57 +00:00
COPY ["backend/seafile.js", "/app/seafile.js"]
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"]
RUN ["/app/setup/sources.py"]
RUN ["/app/setup/style.js"]
RUN ["rm", "-r", "/app/setup"]
2021-05-23 19:48:10 +00:00
FROM roypur/stream-runtime:latest as venv
COPY --from=base /app /app
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"]