|
@@ -1,18 +1,22 @@
|
|
|
FROM arm32v6/alpine
|
|
|
|
|
|
+RUN apk add --no-cache py-pip mopidy gstreamer sudo python3-dev \
|
|
|
+ && pip install --upgrade pip
|
|
|
+
|
|
|
+RUN python3 -m pip install Mopidy-Iris \
|
|
|
+ && python3 -m pip install Mopidy-MPD \
|
|
|
+ && python3 -m pip install Mopidy-Youtube
|
|
|
+
|
|
|
ADD mopidy.conf /home/mopidy/.config/mopidy/mopidy.conf
|
|
|
ADD asound.conf /etc/asound.conf
|
|
|
+RUN adduser -S mopidy -G audio \
|
|
|
+ && chown -R mopidy /home/mopidy \
|
|
|
+ && echo "mopidy ALL=NOPASSWD: /usr/lib/python?.?/site-packages/mopidy_iris/system.sh" >> /etc/sudoers
|
|
|
|
|
|
-RUN adduser -S mopidy \
|
|
|
- && apk add --no-cache py-pip mopidy gstreamer sudo python-dev \
|
|
|
- && python3 -m pip install Mopidy-Iris \
|
|
|
- && python3 -m pip install Mopidy-MPD \
|
|
|
- && python3 -m pip install Mopidy-Youtube \
|
|
|
- && chown -R mopidy:mopidy /home/mopidy/
|
|
|
|
|
|
USER mopidy
|
|
|
|
|
|
EXPOSE 6680/tcp
|
|
|
EXPOSE 6600/tcp
|
|
|
|
|
|
-ENTRYPOINT ["/usr/bin/mopidy"]
|
|
|
+ENTRYPOINT ["/usr/bin/mopidy"]
|