Use minimal Tomcat image as base. Changed paths to be compatible with
hurricane/docker-subsonic.
This commit is contained in:
parent
a2c58d4012
commit
eee3b84569
39
Dockerfile
39
Dockerfile
@ -1,28 +1,29 @@
|
||||
FROM tomcat:8-jre8
|
||||
MAINTAINER Cyrille Nofficial<cynoffic@cyrilix.fr>
|
||||
FROM jeanblanchard/tomcat:8
|
||||
MAINTAINER Markus Birth <markus@birth-online.de>
|
||||
|
||||
ENV SUBSONIC_VERSION 6.0
|
||||
|
||||
LABEL version="$SUBSONIC_VERSION"
|
||||
LABEL description="Subsonic media streamer"
|
||||
|
||||
RUN apt-get update &&\
|
||||
apt-get -y install libav-tools 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 &&\
|
||||
cd ${CATALINA_HOME}/webapps/ &&\
|
||||
rm -rf ROOT &&\
|
||||
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 &&\
|
||||
unzip subsonic.war.zip && rm subsonic.war.zip && mv subsonic.war ROOT.war
|
||||
RUN apk upgrade -U \
|
||||
&& apk add ca-certificates ffmpeg lame \
|
||||
&& rm -rf /var/cache/* \
|
||||
&& mkdir -p /data/transcode /music/ /playlists/ /podcasts/ \
|
||||
&& ln -s /usr/bin/lame /data/transcode/lame \
|
||||
&& ln -s /usr/bin/ffmpeg /data/transcode/ffmpeg \
|
||||
&& cd ${CATALINA_HOME}/webapps/ \
|
||||
&& rm -rf ROOT \
|
||||
&& 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 \
|
||||
&& unzip subsonic.war.zip && rm subsonic.war.zip && mv subsonic.war ROOT.war
|
||||
|
||||
ADD server.xml /usr/local/tomcat/conf/
|
||||
ENV JAVA_OPTS="-Dsubsonic.contextPath=/ -Dsubsonic.home=/opt/data -Dsubsonic.defaultMusicFolder=/opt/music/ -Dsubsonic.defaultPodcastFolder=/opt/podcast/ -Dsubsonic.defaultPlaylistFolder=/opt/playlist/"
|
||||
|
||||
VOLUME /opt/data
|
||||
VOLUME /opt/music/
|
||||
VOLUME /opt/playlist/
|
||||
VOLUME /opt/podcast/
|
||||
ADD server.xml ${CATALINA_HOME}/conf/
|
||||
ENV JAVA_OPTS="-Dsubsonic.contextPath=/ -Dsubsonic.home=/data -Dsubsonic.defaultMusicFolder=/music/ -Dsubsonic.defaultPodcastFolder=/podcasts/ -Dsubsonic.defaultPlaylistFolder=/playlists/"
|
||||
|
||||
VOLUME /data
|
||||
VOLUME /music/
|
||||
VOLUME /playlists/
|
||||
VOLUME /podcasts/
|
||||
|
||||
EXPOSE 8080
|
||||
|
Reference in New Issue
Block a user