FROM curlimages/curl:8.6.0@sha256:c3b8bee303c6c6beed656cfc921218c529d65aa61114eb9e27c62047a1271b9b as snapcast # renovate: datasource=github-tags depName=badaix/snapcast versioning=semver ENV SNAPCAST_VERSION v0.27.0 RUN set -ex; \ \ curl -Lo /home/curl_user/snapserver.deb \ https://github.com/badaix/snapcast/releases/download/${SNAPCAST_VERSION}/snapserver_${SNAPCAST_VERSION#v}-1_amd64.deb FROM rust:1.77.2-bullseye@sha256:4cb856969822501a4c839dadae7a4786e11293ee93efb93b6a91a0c0fc640b89 as librespot # renovate: datasource=github-tags depName=librespot-org/librespot versioning=semver ENV LIBRESPOT_VERSION v0.4.2 RUN set -ex; \ apt-get update; \ apt-get install -y --no-install-recommends \ build-essential \ ; \ rustup component add rustfmt clippy; \ git clone --branch ${LIBRESPOT_VERSION} https://github.com/librespot-org/librespot.git /librespot; \ cd /librespot; \ cargo build --release --no-default-features; FROM debian:bullseye-slim@sha256:715354035496a48b9c4c8f146a6f751de70449913773038776eb1f3d01c93989 COPY --from=snapcast /home/curl_user/snapserver.deb /snapserver.deb COPY --from=librespot /librespot/target/release/librespot /usr/local/bin/librespot RUN set -ex; \ apt-get update; \ apt-get install -y --no-install-recommends \ supervisor \ /snapserver.deb \ ; \ mkdir -p \ /var/log/supervisord \ /var/run/supervisord \ ; \ apt-get clean; \ rm -rf /var/lib/apt/lists/*; COPY supervisord.conf /supervisord.conf CMD ["/usr/bin/supervisord", "-c", "/supervisord.conf"]