This commit is contained in:
Brandon
2019-08-18 09:36:03 -05:00
parent 4a6584f029
commit f98be77201
3 changed files with 17 additions and 15 deletions

View File

@@ -1,7 +1,11 @@
FROM jfloff/alpine-python:2.7
MAINTAINER Log1x <github@log1x.com>
ENV PGID=1000 PUID=1000
ENV PUID="${PUID:-1000}"
ENV PGID="${PGID:-1000}"
ENV PYTHONPATH="/usr/local/lib/python2.7/site-packages:/usr/lib/python2.7/site-packages"
WORKDIR /mopidy-iris
RUN \
@@ -22,21 +26,17 @@ RUN \
py2-gst@edge \
py-gobject@edge \
su-exec \
gstreamer-dev@edge \
gstreamer-tools@edge \
gst-plugins-good@edge \
gst-plugins-ugly@edge \
&& pip install -U \
pyopenssl \
youtube-dl \
&& echo "* Installing Mopidy + Extensions" \
&& pip install -U \
Mopidy \
Mopidy-SoundCloud \
Mopidy-YouTube \
Mopidy-Iris \
Mopidy-Local-Images \
Mopidy-Local-SQLite \
&& echo "* Installing Iris" \
&& pip install -U Mopidy-Iris \
&& echo "* Creating Mopidy User" \
&& addgroup -g ${PGID} mopidy \
&& adduser -h /mopidy -s /bin/sh -D -G mopidy -u ${PUID} mopidy \
@@ -44,9 +44,9 @@ RUN \
&& mkdir -p /data \
&& chown -R mopidy:mopidy /data \
&& echo "* Ready to start Mopidy" \
&& sleep 10
&& sleep 1
COPY mopidy.conf /config/mopidy.conf
COPY mopidy.conf /data/config/mopidy.conf
COPY run.sh /usr/local/bin/run.sh
RUN chmod +x /usr/local/bin/run.sh
EXPOSE 6600 6680 5555/udp