From a890f58cbf788642dbe178238c219737a08d3ef2 Mon Sep 17 00:00:00 2001 From: Andrew Rabert Date: Tue, 8 Aug 2017 01:19:26 -0400 Subject: [PATCH] Expose context path configuration --- install/docker/Dockerfile | 2 +- install/docker/run.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/install/docker/Dockerfile b/install/docker/Dockerfile index dea28398..d081653d 100644 --- a/install/docker/Dockerfile +++ b/install/docker/Dockerfile @@ -3,7 +3,7 @@ FROM alpine:3.6 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 +ENV AIRSONIC_PORT=4040 AIRSONIC_DIR=/airsonic CONTEXT_PATH=/ WORKDIR $AIRSONIC_DIR diff --git a/install/docker/run.sh b/install/docker/run.sh index 21fc3bfd..5d81df33 100755 --- a/install/docker/run.sh +++ b/install/docker/run.sh @@ -15,7 +15,7 @@ if [[ $# -lt 1 ]] || [[ ! "$1" == "java"* ]]; then exec java -Xmx256m \ -Dserver.host=0.0.0.0 \ -Dserver.port=$AIRSONIC_PORT \ - -Dserver.contextPath=/ \ + -Dserver.contextPath=$CONTEXT_PATH \ -Dairsonic.home=$AIRSONIC_DIR/data \ -Dairsonic.defaultMusicFolder=$AIRSONIC_DIR/musics \ -Dairsonic.defaultPodcastFolder=$AIRSONIC_DIR/podcasts \