From 3a8ca4ef32bcd8feab645882fcc6dc2f786a7615 Mon Sep 17 00:00:00 2001 From: Cyrille Nofficial Date: Thu, 14 May 2015 18:10:49 +0200 Subject: [PATCH] Initial import --- Dockerfile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..cf92426 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,27 @@ +FROM java:8 +MAINTAINER Cyrille Nofficial + +ENV SUBSONIC_VERSION 5.2.1 + +RUN mkdir -p /opt/subsonic /opt/data /opt/music/ &&\ + wget "http://downloads.sourceforge.net/project/subsonic/subsonic/$SUBSONIC_VERSION/subsonic-$SUBSONIC_VERSION-standalone.tar.gz?r=http%3A%2F%2Fwww.subsonic.org%2Fpages%2Fdownload2.jsp%3Ftarget%3Dsubsonic-$SUBSONIC_VERSION-standalone.tar.gz&ts=1431096340&use_mirror=garr" \ + -O- --quiet | tar zxv -C /opt/subsonic + +VOLUME /opt/data +VOLUME /opt/music/ + +EXPOSE 8080 +WORKDIR /opt/subsonic + +CMD java -Xmx100m \ + -Dsubsonic.home=/opt/data \ + -Dsubsonic.port=8080 \ + -Dsubsonic.contextPath=/ \ + -Dsubsonic.defaultMusicFolder=/opt/music/ \ + -Dsubsonic.defaultPodcastFolder=/opt/music/ \ + -Dsubsonic.defaultPlaylistFolder=/opt/music/ \ + -Djava.awt.headless=true \ + -verbose:gc \ + -jar /opt/subsonic/subsonic-booter-jar-with-dependencies.jar + +