40 lines
929 B
Text
40 lines
929 B
Text
|
ARG BUILD_FROM
|
||
|
FROM $BUILD_FROM
|
||
|
|
||
|
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && \
|
||
|
apk update && \
|
||
|
apk add \
|
||
|
gst-plugins-good \
|
||
|
gst-plugins-bad \
|
||
|
librespot \
|
||
|
mopidy \
|
||
|
nginx \
|
||
|
py3-pip \
|
||
|
snapcast-server \
|
||
|
supervisor && \
|
||
|
python3 -m pip install Mopidy-Mobile && \
|
||
|
echo "daemon off;" >> /etc/nginx/nginx.conf
|
||
|
|
||
|
COPY data/supervisord.conf /etc/supervisord.conf
|
||
|
|
||
|
COPY data/snapserver.conf /etc/snapserver.conf
|
||
|
COPY data/config.js /usr/share/snapserver/snapweb/config.js
|
||
|
|
||
|
COPY data/mopidy-extra.conf /etc/mopidy/extra.conf
|
||
|
|
||
|
COPY data/Radios.m3u8.gtpl /templates/Radios.m3u8.gtpl
|
||
|
COPY data/nginx-site.gtpl /templates/nginx-site.gtpl
|
||
|
|
||
|
COPY data/run.sh /run.sh
|
||
|
RUN chmod a+x /run.sh
|
||
|
|
||
|
EXPOSE 1704 1705 6680
|
||
|
|
||
|
ENV LIBRESPOT_BACKEND=pipe
|
||
|
ENV LIBRESPOT_DEVICE=/tmp/snapfifo_librespot
|
||
|
ENV LIBRESPOT_NAME=Snapcast
|
||
|
ENV LIBRESPOT_AUTOPLAY=true
|
||
|
ENV LIBRESPOT_VOLUME=100
|
||
|
|
||
|
CMD [ "/run.sh" ]
|