This repository has been archived on 2024-09-13. You can view files and clone it, but cannot push or open issues or pull requests.
docker-snapcast/Dockerfile
renovate-bot 9ffbae97b2
All checks were successful
continuous-integration/drone/pr Build is passing
Update curlimages/curl Docker tag to v8.10.0
2024-09-11 10:12:46 +00:00

47 lines
1.6 KiB
Docker

FROM curlimages/curl:8.10.0@sha256:a3838a5cf24fe940ec63e98fc37ce1dbe1d43286dc2b803c5bc5e9f067c7ad6d 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.80.1-bullseye@sha256:f6f599d3f027a97fb60cb87854199fcde390e25cee216712c3f9eede545b052e 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:00558f781b91e90469812bad32002f311ab26ef241b4a1996f6600680ec82f5c
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"]