Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM rust:stretch as build
- ARG BRANCH=master
- WORKDIR /usr/src/spotifyd
- RUN dpkg --add-architecture i386
- RUN apt-get -yqq update && apt-get upgrade -yqq && \
- apt-get install -yqq libasound2-dev && \
- apt-get install -yqq apt-utils pulseaudio libpulse-dev build-essential libpulse0 libpulse0:i386
- RUN ldconfig
- RUN git clone --depth=1 --branch=${BRANCH} https://github.com/Spotifyd/spotifyd.git . && sed '/let shared_spirc = Rc::new(spirc);/a mixer.set_volume(50);' src/main_loop.rs
- RUN cargo build --release --features pulseaudio_backend
- FROM alpine
- CMD ["/usr/bin/spotifyd", "--no-daemon"]
- RUN addgroup -S spotify && adduser -S spotify -G spotify audio
- COPY --from=build /usr/src/spotifyd/target/release/spotifyd /usr/bin/
- COPY pulseaudio.client.conf /etc/pulse/client.conf
- USER spotify
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement