Dockerfile 728 B

12345678910111213141516171819202122232425
  1. FROM arm32v6/alpine
  2. # GID of group audio on the doccker host
  3. ARG gid_audio=29
  4. RUN apk add --no-cache py-pip mopidy gstreamer gst-plugins-bad sudo python3-dev \
  5. && pip3 install --upgrade pip
  6. RUN python3 -m pip install Mopidy-Iris \
  7. && python3 -m pip install Mopidy-MPD \
  8. && python3 -m pip install Mopidy-Youtube
  9. ADD ./data/mopidy/.config/mopidy/mopidy.conf /var/lib/mopidy/.config/mopidy/mopidy.conf
  10. ADD ./data/etc/asound.conf /etc/asound.conf
  11. RUN chown -R mopidy /var/lib/mopidy \
  12. && echo "mopidy ALL=NOPASSWD: /usr/lib/python?.?/site-packages/mopidy_iris/system.sh" >> /etc/sudoers \
  13. && sed -i /etc/passwd -e "/^mopidy.*/s/18/$gid_audio/"
  14. USER mopidy
  15. EXPOSE 6680/tcp
  16. EXPOSE 6600/tcp
  17. ENTRYPOINT ["/usr/bin/mopidy"]