Try to fix problems (project abandoned)

This commit is contained in:
Tobias Reisinger 2025-06-24 20:47:47 +02:00
parent 39073d8f3a
commit dd147a743a
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
5 changed files with 30 additions and 22 deletions

View file

@ -1,20 +1,32 @@
ARG BUILD_FROM
#FROM rust:alpine as librespot-builder
#
#RUN apk add git build-base \
# && git clone https://github.com/librespot-org/librespot.git /librespot \
# && cd /librespot \
# && cargo build --release --no-default-features
FROM $BUILD_FROM
ARG BUILD_ARCH
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && \
apk update && \
apk add \
gst-plugins-good \
gst-plugins-bad \
librespot \
mopidy \
nginx \
py3-pip \
snapcast-server \
supervisor && \
python3 -m pip install Mopidy-Mobile && \
python3 -m pip install --break-system-packages Mopidy-Mobile && \
echo "daemon off;" >> /etc/nginx/nginx.conf
#COPY --from=librespot-builder /librespot/target/release/librespot /usr/bin/librespot
ADD --chmod=755 https://s3.serguzim.me/public/librespot/librespot-${BUILD_ARCH} /usr/bin/librespot
COPY data/supervisord.conf /etc/supervisord.conf
COPY data/snapserver.conf /etc/snapserver.conf
@ -33,7 +45,9 @@ EXPOSE 1704 1705 6680
ENV LIBRESPOT_BACKEND=pipe
ENV LIBRESPOT_DEVICE=/tmp/snapfifo_librespot
ENV LIBRESPOT_NAME=Snapcast
ENV LIBRESPOT_AUTOPLAY=true
ENV LIBRESPOT_AUTOPLAY=on
ENV LIBRESPOT_VOLUME=100
ENV RUST_LOG=DEBUG
CMD [ "/run.sh" ]