Dockerfile.mopidy 687 B

123456789101112131415161718192021222324252627282930313233343536
  1. FROM arm32v6/alpine
  2. RUN adduser -S mopidy \
  3. && apk add --no-cache py-pip mopidy gstreamer sudo \
  4. && python3 -m pip install Mopidy-Iris \
  5. && python3 -m pip install Mopidy-MPD \
  6. && ldconfig \
  7. && wget https://www.ee.columbia.edu/~dpwe/sounds/music/africa-toto.wav -O ~/toto.wav \
  8. && mkdir -p ~/.config/mopidy \
  9. && cat <<EOF | tee ~/.config/mopidy/mopidy.conf
  10. [http]
  11. enabled = true
  12. hostname = ::
  13. port = 6680
  14. [mpd]
  15. hostname = ::
  16. [audio]
  17. mixer = software
  18. output = alsasink
  19. EOF
  20. && cat <<EOF | tee /etc/asound.conf
  21. pcm.!default {
  22. type plug
  23. slave {
  24. pcm "hw:1,0"
  25. }
  26. }
  27. ctl.!default {
  28. type hw
  29. card 1
  30. }
  31. EOF
  32. &&
  33. /usr/bin/mopidy &