docker-subsonic/Dockerfile

29 lines
1.1 KiB
Text
Raw Normal View History

FROM debian
2019-02-28 14:29:29 +00:00
ENV SUBSONIC_VERSION 6.1.5
2015-05-14 21:37:21 +00:00
LABEL description="Subsonic media streamer"
LABEL version="$SUBSONIC_VERSION"
2015-05-14 21:37:21 +00:00
2015-05-24 17:53:14 +00:00
RUN apt-get update &&\
apt-get -y dist-upgrade &&\
apt-get -y install openjdk-8-jre-headless wget libav-tools lame &&\
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 &&\
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/
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