@elan said:
You need to use the bundled one (presumably need to add those deps). It’s a special build of the app, and Plexamp isn’t compatible with the standard one.
That is strange, my docker version uses the debian stretch version of MPD.
I couldn’t find a deb-package that contains libiconv.so.2 so I’m unable to get the bundled MPD running (both from Docker and from my native raspbian stretch version) perhaps the bundle should contain the missing files… Oops, libicon.so.2 is included in resources/helpers just had to set the correct LD_LIBRARY_PATH.
Here is a working Dockerfile (node:9-stretch is unfortunately quite big but the rest is quite straightforward). It requires that you have a server.json file in the same directory as your Dockerfile.
FROM node:9-stretch
RUN apt-get update && apt-get install -y libasound2 && \
rm -rf /var/lib/apt/lists/*
RUN wget --no-verbose https://files.plexapp.com/elan/plexamp-v1.0.5-pi.tar.gz && \
tar xzf plexamp-v1.0.5-pi.tar.gz -C /root && \
rm plexamp-v1.0.5-pi.tar.gz
COPY server.json /root/.config/Plexamp/
ENV LD_LIBRARY_PATH /root/plexamp/resources/helpers/linux-arm
EXPOSE 20000
ENTRYPOINT ["node", "/root/plexamp/server/server.prod.js"]
You build as follows docker build -t plexamp:v1.0.5 . and run docker run -it --device /dev/snd plexamp:v1.0.5.