12345678910111213141516171819202122232425262728 |
- FROM arm32v6/alpine
- # GID of group audio on the doccker host
- ARG gid_audio=29
- RUN apk add --no-cache py-pip mopidy gstreamer gst-plugins-bad sudo python3-dev \
- && pip3 install --upgrade pip
- RUN python3 -m pip install Mopidy-Iris \
- && python3 -m pip install Mopidy-MPD \
- && python3 -m pip install Mopidy-Youtube \
- && python3 -m pip install Mopidy-Local
- ADD ./data/mopidy/.config/mopidy/mopidy.conf /var/lib/mopidy/.config/mopidy/mopidy.conf
- ADD ./data/etc/asound.conf /etc/asound.conf
- # Allow to restart the mopidy service from the web interface
- # Change gid to to allow /dev/snd access
- RUN chown -R mopidy /var/lib/mopidy \
- && echo "mopidy ALL=NOPASSWD: /usr/lib/python?.?/site-packages/mopidy_iris/system.sh" >> /etc/sudoers \
- && sed -i /etc/passwd -e "/^mopidy.*/s/18/$gid_audio/"
- USER mopidy
- EXPOSE 6680/tcp
- EXPOSE 6600/tcp
- ENTRYPOINT ["/usr/bin/mopidy"]
|