From 0f05305f8e1aa244ea048dc9ad1dc6ad8b1d63fe Mon Sep 17 00:00:00 2001 From: Andrea Borghi Date: Tue, 25 Sep 2018 21:13:24 +0200 Subject: [PATCH 1/2] fix entrypoint to accept node parameters --- Dockerfile | 2 +- run.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index f5f005e..1d88cf2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ MAINTAINER Petr Sloup ENV NODE_ENV="production" VOLUME /data WORKDIR /data -EXPOSE 80 +EXPOSE 8080 ENTRYPOINT ["/bin/bash", "/usr/src/app/run.sh"] RUN apt-get -qq update \ diff --git a/run.sh b/run.sh index 7b6c1bf..4148c93 100755 --- a/run.sh +++ b/run.sh @@ -17,7 +17,7 @@ sleep 3 export DISPLAY=:99.0 cd /data -node /usr/src/app/ -p 80 "$@" & +node /usr/src/app/ "$@" & child=$! wait "$child" From 54b4170c77edf45a9125bdf740c0b88cab55beeb Mon Sep 17 00:00:00 2001 From: Andrea Borghi Date: Tue, 25 Sep 2018 21:42:01 +0200 Subject: [PATCH 2/2] update doc --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 044b31e..efc9847 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ Alternatively, you can use the `tileserver-gl-light` package instead, which is p An alternative to npm to start the packed software easier is to install [Docker](http://www.docker.com/) on your computer and then run in the directory with the downloaded MBTiles the command: ```bash -docker run --rm -it -v $(pwd):/data -p 8080:80 klokantech/tileserver-gl +docker run --rm -it -v $(pwd):/data -p 8080:8080 klokantech/tileserver-gl ``` This will download and start a ready to use container on your computer and the maps are going to be available in webbrowser on localhost:8080.