Advertisement
Guest User

Untitled

a guest
Sep 18th, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. FROM rust:stretch as build
  2.  
  3. ARG BRANCH=master
  4.  
  5. WORKDIR /usr/src/spotifyd
  6.  
  7. RUN dpkg --add-architecture i386
  8. RUN apt-get -yqq update && apt-get upgrade -yqq && \
  9. apt-get install -yqq libasound2-dev && \
  10. apt-get install -yqq apt-utils pulseaudio libpulse-dev build-essential libpulse0 libpulse0:i386
  11. RUN ldconfig
  12.  
  13. 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
  14.  
  15. RUN cargo build --release --features pulseaudio_backend
  16.  
  17. FROM alpine
  18.  
  19. CMD ["/usr/bin/spotifyd", "--no-daemon"]
  20.  
  21. RUN addgroup -S spotify && adduser -S spotify -G spotify audio
  22.  
  23. COPY --from=build /usr/src/spotifyd/target/release/spotifyd /usr/bin/
  24.  
  25. COPY pulseaudio.client.conf /etc/pulse/client.conf
  26.  
  27. USER spotify
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement