Add JVM_HEAP env var / config option to docker

Signed-off-by: Paul Rogalinski-Pinter <paul@paul.vc>
master
Paul Rogalinski-Pinter 5 years ago committed by GitHub
parent c6eed14db5
commit bd83229345
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      install/docker/Dockerfile
  2. 2
      install/docker/run.sh

@ -3,7 +3,7 @@ FROM alpine:3.9
LABEL description="Airsonic is a free, web-based media streamer, providing ubiquitious access to your music." \
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

@ -12,7 +12,7 @@ if [[ $# -lt 1 ]] || [[ ! "$1" == "java"* ]]; then
while IFS= read -r -d '' item; do
java_opts_array+=( "$item" )
done < <([[ $JAVA_OPTS ]] && xargs printf '%s\0' <<<"$JAVA_OPTS")
exec java -Xmx256m \
exec java -Xmx${JVM_HEAP} \
-Dserver.host=0.0.0.0 \
-Dserver.port=$AIRSONIC_PORT \
-Dserver.contextPath=$CONTEXT_PATH \

Loading…
Cancel
Save