2018-04-04 23:49:08 +00:00
|
|
|
FROM debian
|
|
|
|
ENV SUBSONIC_VERSION 6.1.3
|
2015-05-14 21:37:21 +00:00
|
|
|
LABEL description="Subsonic media streamer"
|
2018-04-04 23:49:08 +00:00
|
|
|
LABEL version="$SUBSONIC_VERSION"
|
2015-05-14 21:37:21 +00:00
|
|
|
|
2015-05-24 17:53:14 +00:00
|
|
|
RUN apt-get update &&\
|
2018-04-04 23:49:08 +00:00
|
|
|
apt-get -y dist-upgrade &&\
|
|
|
|
apt-get -y install openjdk-8-jre-headless wget libav-tools lame &&\
|
2015-05-30 12:09:43 +00:00
|
|
|
mkdir -p /opt/data/transcode /opt/music/ /opt/playlist/ /opt/podcast/ &&\
|
2015-05-30 09:08:22 +00:00
|
|
|
ln -s /usr/bin/lame /opt/data/transcode/lame &&\
|
|
|
|
ln -s /usr/bin/avconv /opt/data/transcode/ffmpeg &&\
|
2018-04-04 23:49:08 +00:00
|
|
|
wget "https://sourceforge.net/projects/subsonic/files/subsonic/$SUBSONIC_VERSION/subsonic-$SUBSONIC_VERSION-standalone.tar.gz/download" -O subsonic.tar.gz --quiet &&\
|
|
|
|
mkdir -p /opt/subsonic &&\
|
|
|
|
tar -C /opt/subsonic -xf subsonic.tar.gz &&\
|
|
|
|
rm /subsonic.tar.gz
|
|
|
|
EXPOSE 4040
|
|
|
|
EXPOSE 4043
|
2015-05-14 16:10:49 +00:00
|
|
|
VOLUME /opt/data
|
|
|
|
VOLUME /opt/music/
|
2015-05-30 12:09:43 +00:00
|
|
|
VOLUME /opt/playlist/
|
|
|
|
VOLUME /opt/podcast/
|
2018-04-04 23:49:08 +00:00
|
|
|
ENV SUBSONIC_HOME /opt/data
|
|
|
|
ENV SUBSONIC_PORT 4040
|
|
|
|
ENV SUBSONIC_HTTPS_PORT 4043
|
|
|
|
ENV SUBSONIC_DEFAULT_MUSIC_FOLDER /opt/music
|
|
|
|
ENV SUBSONIC_DEFAULT_PODCAST_FOLDER /opt/podcast
|
|
|
|
ENV SUBSONIC_DEFAULT_PLAYLIST_FOLDER /opt/playlist
|
|
|
|
CMD /opt/subsonic/subsonic.sh && tail -f /opt/data/subsonic_sh.log
|