FROM debian:9 ENV SUBSONIC_VERSION 6.1.6 LABEL description="Subsonic media streamer" LABEL version="$SUBSONIC_VERSION" RUN apt-get update &&\ apt-get -y dist-upgrade &&\ apt-get -y install openjdk-8-jre-headless wget ffmpeg lame &&\ mkdir -p /opt/data/transcode /opt/music/ /opt/playlist/ /opt/podcast/ &&\ ln -s /usr/bin/lame /opt/data/transcode/lame &&\ ln -s /usr/bin/avconv /opt/data/transcode/ffmpeg &&\ 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 VOLUME /opt/data VOLUME /opt/music/ VOLUME /opt/playlist/ VOLUME /opt/podcast/ 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