Browse Source

changed to dockerfile

Toastie 4 years ago
parent
commit
4ccad30a90
1 changed files with 6 additions and 3 deletions
  1. 6 3
      mopidy.sh

+ 6 - 3
mopidy.sh

@@ -1,9 +1,12 @@
-apk add py-pip mopidy gstreamer \
+FROM arm32v6/alpine
+
+RUN adduser -S mopidy \
+  && apk add --no-cache py-pip mopidy gstreamer sudo \
   && python3 -m pip install Mopidy-Iris \
   && python3 -m pip install Mopidy-MPD \
-  && ldconfig
+  && ldconfig \
   && wget https://www.ee.columbia.edu/~dpwe/sounds/music/africa-toto.wav -O ~/toto.wav \
-  && mkdir ~/.config/mopidy
+  && mkdir -p ~/.config/mopidy
   && cat <<EOF | tee ~/.config/mopidy/mopidy.conf
 [http]
 enabled = true