containers/snapcast/Containerfile
Neil Hanlon c510399a8c
Some checks failed
ci/woodpecker/push/invoiceninja Pipeline failed
ci/woodpecker/push/snapcast Pipeline failed
ci/woodpecker/push/matter-server Pipeline was successful
ci/woodpecker/push/woodpecker-ci Pipeline was successful
matter server
2024-05-23 22:34:03 -04:00

31 lines
904 B
Docker

FROM debian:11 as snapserver
RUN dpkg --add-architecture armhf
RUN apt update
# Install deps for sever/web
RUN apt -y install curl
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
# # 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
RUN mkdir /work
WORKDIR /work
ENTRYPOINT ["snapserver"]