31 lines
1.2 KiB
Docker
31 lines
1.2 KiB
Docker
FROM roypur/stream-build:latest as base
|
|
RUN ["mkdir", "-p", "/app/version"]
|
|
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"]
|
|
COPY ["backend/stream.py", "/app/stream.py"]
|
|
COPY ["backend/config.py", "/app/config.py"]
|
|
COPY ["backend/seafile.js", "/app/seafile.js"]
|
|
COPY ["backend/stream_providers.py", "/app/stream_providers.py"]
|
|
COPY ["frontend/index.html", "/app/index.html"]
|
|
COPY ["frontend/favicon.svg", "/app/favicon.svg"]
|
|
COPY ["frontend/script.js", "/app/script.js"]
|
|
COPY ["frontend/style.css", "/app/style.css"]
|
|
RUN ["chmod", "-R", "755", "/app"]
|
|
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"]
|
|
|
|
FROM roypur/stream-runtime:latest as venv
|
|
COPY --from=base /app /app
|
|
|
|
FROM scratch
|
|
COPY --from=venv / /
|
|
USER 1444:1444
|
|
ENV ICECAST_SERVER=https://icecast.purser.it:7000
|
|
ENV STREAM_SERVER=https://stream.purser.it
|
|
ENTRYPOINT ["/app/start.sh"]
|