From 90694d8dc2b0c86a26f1d92ae02f6c5800c7d683 Mon Sep 17 00:00:00 2001 From: Chakib Benziane Date: Fri, 2 Feb 2018 11:11:22 +0100 Subject: [PATCH] add docker instructions in readme --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index 24d49e2..613563c 100644 --- a/README.md +++ b/README.md @@ -262,6 +262,23 @@ I wanted to make code that could be used for people who are just getting started There will always be more work to do here. ;-) +### Dockerfile + +You can run pagerank inside a docker container with the following procedure + +1. Install docker on your server +2. Clone this repo and `cd` to it's directory +3. Build the image with the following command `docker build -t pagerank/pagerank` +4. Run the image like this `docker -p 1339:1339 run pagerank/pagerank` + +You can choose a different port or even the port 80 with the following command: + +`docker run -p 80:1339 run pagerank/pagerank` + +You can mount the `domains` and `prefs` folder in a local destination of you choosing with this command: + +`docker run -v path_to_domains_folder:/usr/app/src/domains -v path_to_prefs_folder:/usr/app/src/prefs -p 80:1339 pagerank/pagerank` + ### Updates #### v0.7.9 11/8/17 by DW