containers/snapcast/Containerfile

31 lines
904 B
Plaintext
Raw Normal View History

2024-05-24 02:33:48 +00:00
FROM debian:11 as snapserver
2024-01-03 22:37:20 +00:00
RUN dpkg --add-architecture armhf
RUN apt update
2024-05-24 02:33:48 +00:00
# Install deps for sever/web
2024-01-03 22:37:20 +00:00
RUN apt -y install curl
2024-05-24 02:33:48 +00:00
2024-01-03 22:37:20 +00:00
RUN curl -Lso /tmp/snapserver.deb https://github.com/badaix/snapcast/releases/download/v0.27.0/snapserver_0.27.0-1_armhf.deb
RUN apt -y install /tmp/snapserver.deb
RUN rm -fr /tmp/snapserver.deb
2024-05-24 02:33:48 +00:00
# # get snapweb
# RUN curl -Lso /tmp/snapweb.tar.gz https://github.com/badaix/snapweb/archive/refs/heads/react.tar.gz
# WORKDIR /tmp/
# RUN tar -xf snapweb.tar.gz
#
# # build snapweb
# WORKDIR /tmp/snapweb-react
# RUN npm ci
# RUN npm run build
COPY snapweb-react-build.tar.gz /tmp
RUN mkdir /usr/share/snapserver/snapweb-react
RUN tar -xf /tmp/snapweb-react-build.tar.gz -C /usr/share/snapserver/snapweb-react
RUN sed -i 's,/usr/share/snapserver/snapweb,/usr/share/snapserver/snapweb-react,' /etc/snapserver.conf
2024-01-03 22:37:20 +00:00
RUN mkdir /work
WORKDIR /work
ENTRYPOINT ["snapserver"]