Add JVM_HEAP env var / config option to docker
Signed-off-by: Paul Rogalinski-Pinter <paul@paul.vc>
This commit is contained in:
@@ -3,7 +3,7 @@ FROM alpine:3.9
|
|||||||
LABEL description="Airsonic is a free, web-based media streamer, providing ubiquitious access to your music." \
|
LABEL description="Airsonic is a free, web-based media streamer, providing ubiquitious access to your music." \
|
||||||
url="https://github.com/airsonic/airsonic"
|
url="https://github.com/airsonic/airsonic"
|
||||||
|
|
||||||
ENV AIRSONIC_PORT=4040 AIRSONIC_DIR=/airsonic CONTEXT_PATH=/ UPNP_PORT=4041
|
ENV AIRSONIC_PORT=4040 AIRSONIC_DIR=/airsonic CONTEXT_PATH=/ UPNP_PORT=4041 JVM_HEAP=256m
|
||||||
|
|
||||||
WORKDIR $AIRSONIC_DIR
|
WORKDIR $AIRSONIC_DIR
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ if [[ $# -lt 1 ]] || [[ ! "$1" == "java"* ]]; then
|
|||||||
while IFS= read -r -d '' item; do
|
while IFS= read -r -d '' item; do
|
||||||
java_opts_array+=( "$item" )
|
java_opts_array+=( "$item" )
|
||||||
done < <([[ $JAVA_OPTS ]] && xargs printf '%s\0' <<<"$JAVA_OPTS")
|
done < <([[ $JAVA_OPTS ]] && xargs printf '%s\0' <<<"$JAVA_OPTS")
|
||||||
exec java -Xmx256m \
|
exec java -Xmx${JVM_HEAP} \
|
||||||
-Dserver.host=0.0.0.0 \
|
-Dserver.host=0.0.0.0 \
|
||||||
-Dserver.port=$AIRSONIC_PORT \
|
-Dserver.port=$AIRSONIC_PORT \
|
||||||
-Dserver.contextPath=$CONTEXT_PATH \
|
-Dserver.contextPath=$CONTEXT_PATH \
|
||||||
|
|||||||
Reference in New Issue
Block a user