diff --git a/docker/server/Dockerfile b/docker/server/Dockerfile index b388742..d1a8d7c 100644 --- a/docker/server/Dockerfile +++ b/docker/server/Dockerfile @@ -5,7 +5,7 @@ FROM kiwix/kiwix-tools:$VERSION LABEL org.opencontainers.image.source https://github.com/openzim/kiwix-tools # expose kiwix-serve default port and workdir -EXPOSE 80 +EXPOSE 8080 VOLUME /data WORKDIR /data diff --git a/docker/server/start.sh b/docker/server/start.sh index 2b8e7b4..75ba3eb 100755 --- a/docker/server/start.sh +++ b/docker/server/start.sh @@ -13,7 +13,11 @@ then fi fi -CMD="/usr/local/bin/kiwix-serve --port=80 $@" +if [ -z "$PORT" ] +then + PORT=8080 +fi +CMD="/usr/local/bin/kiwix-serve --port=$PORT $@" echo $CMD $CMD