docker-subsonic/Dockerfile

29 lines
1.2 KiB
Text
Raw Normal View History

2015-10-28 22:30:26 +00:00
FROM tomcat:8-jre8
2015-05-14 16:10:49 +00:00
MAINTAINER Cyrille Nofficial<cynoffic@cyrilix.fr>
2015-10-28 19:31:08 +00:00
ENV SUBSONIC_VERSION 5.3
2015-05-14 16:10:49 +00:00
2015-05-14 21:37:21 +00:00
LABEL version="$SUBSONIC_VERSION"
LABEL description="Subsonic media streamer"
2015-05-24 17:53:14 +00:00
RUN apt-get update &&\
2015-05-30 09:08:22 +00:00
apt-get -y install 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 &&\
2015-10-28 22:30:26 +00:00
cd ${CATALINA_HOME}/webapps/ &&\
2015-10-29 19:15:57 +00:00
rm -rf ROOT &&\
2015-10-28 22:30:26 +00:00
wget "http://downloads.sourceforge.net/project/subsonic/subsonic/$SUBSONIC_VERSION/subsonic-$SUBSONIC_VERSION-war.zip?r=http%3A%2F%2Fwww.subsonic.org%2Fpages%2Fdownload2.jsp%3Ftarget%3Dsubsonic-$SUBSONIC_VERSION-standalone.tar.gz&ts=1431096340&use_mirror=garr" \
-O subsonic.war.zip --quiet &&\
2015-10-29 19:15:57 +00:00
unzip subsonic.war.zip && rm subsonic.war.zip && mv subsonic.war ROOT.war
2015-10-28 22:30:26 +00:00
2015-10-29 19:16:35 +00:00
ADD server.xml /usr/local/tomcat/conf/
2015-10-29 19:15:57 +00:00
ENV JAVA_OPTS="-Dsubsonic.contextPath=/ -Dsubsonic.home=/opt/data -Dsubsonic.defaultMusicFolder=/opt/music/ -Dsubsonic.defaultPodcastFolder=/opt/podcast/ -Dsubsonic.defaultPlaylistFolder=/opt/playlist/"
2015-05-14 16:10:49 +00:00
VOLUME /opt/data
VOLUME /opt/music/
VOLUME /opt/playlist/
VOLUME /opt/podcast/
2015-05-14 16:10:49 +00:00
2015-10-29 19:15:57 +00:00