Browse Source

first working version

Toastie 4 years ago
parent
commit
e1a8ed4512
2 changed files with 8 additions and 5 deletions
  1. 8 5
      mopidy/Dockerfile
  2. 0 0
      mopidy/data/mopidy/.config/mopidy/mopidy.conf

+ 8 - 5
mopidy/Dockerfile

@@ -1,17 +1,20 @@
 FROM arm32v6/alpine
 
+ARG gid_input=29
+
 RUN apk add --no-cache py-pip mopidy gstreamer sudo python3-dev \
- && pip install --upgrade pip
+ && pip3 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 mopidy.conf /var/lib/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 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_input/"
 
 
 USER mopidy

mopidy/mopidy.conf → mopidy/data/mopidy/.config/mopidy/mopidy.conf