@@ -0,0 +1,2 @@
+mpd_host=dudelbox
+mpd_files=Files/music/
@@ -7,6 +7,8 @@ RUN echo "rfidac:x:100:105:RFIC AC,,,:/opt:/sbin/nologin" >> /etc/passwd \
&& pip3 install --upgrade pip setuptools \
&& apk add --no-cache linux-headers gcc musl-dev python3-dev \
&& pip3 install evdev
+ && apk rm linux-headers gcc musl-dev python3-dev
+ && apk add --no-cache mpc
ADD rfid-test.py /opt/rfid-test.py
@@ -6,3 +6,6 @@ services:
image: toastie/rfidac
devices:
- '/dev/input/event0:/dev/input/event0'
+ environments:
+ - mpd_host:${mpd_host}
+ - mpd_files:${mpd_files}