From 9759153960ad264afa823a02eeaecc6d9298d272 Mon Sep 17 00:00:00 2001 From: Markus Birth Date: Thu, 26 May 2016 12:43:36 +0200 Subject: [PATCH] Added MAX_MEM environment var and a few java parameters taken from hurricanehrndz/docker-subsonic. --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 610c391..7112f50 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM jeanblanchard/tomcat:8 MAINTAINER Markus Birth -ENV SUBSONIC_VERSION="6.0" LC_ALL="C.UTF-8" LANG="en_US.UTF-8" LANGUAGE="en_US.UTF-8" TZ="Europe/Berlin" +ENV SUBSONIC_VERSION="6.0" LC_ALL="C.UTF-8" LANG="en_US.UTF-8" LANGUAGE="en_US.UTF-8" TZ="Europe/Berlin" MAX_MEM="256" LABEL version="$SUBSONIC_VERSION" LABEL description="Subsonic media streamer" @@ -22,7 +22,7 @@ RUN apk upgrade -U \ && unzip subsonic.war.zip && rm subsonic.war.zip && mv subsonic.war ROOT.war ADD server.xml ${CATALINA_HOME}/conf/ -ENV JAVA_OPTS="-Dsubsonic.contextPath=/ -Dsubsonic.home=/data -Dsubsonic.defaultMusicFolder=/music/ -Dsubsonic.defaultPodcastFolder=/podcasts/ -Dsubsonic.defaultPlaylistFolder=/playlists/" +ENV JAVA_OPTS="-Xmx${MAX_MEM}m -Dsubsonic.host=0.0.0.0 -Dsubsonic.contextPath=/ -Dsubsonic.home=/data -Dsubsonic.defaultMusicFolder=/music/ -Dsubsonic.defaultPodcastFolder=/podcasts/ -Dsubsonic.defaultPlaylistFolder=/playlists/ -Djava.awt.headless=true" VOLUME ["/data", "/music/", "/playlists/", "/podcasts/"]