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"]