Compare commits

...

3 Commits

Author SHA1 Message Date
Chakib Benziane c71b459e59 typo fix 6 years ago
Chakib Benziane 90694d8dc2 add docker instructions in readme 6 years ago
Chakib Benziane 562399e716 add dockerfile 6 years ago

@ -0,0 +1,18 @@
FROM node:8.6.0
WORKDIR /usr/src/app
COPY package.json .
COPY pagepark.js .
RUN mkdir /usr/src/app/domains
RUN mkdir /usr/src/app/prefs
RUN npm install
EXPOSE 1339
CMD ["node", "pagepark.js"]

@ -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 pagepark 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 pagepark/pagerank`
4. Run the image like this `docker -p 1339:1339 run pagepark/pagerank`
You can choose a different port or even the port 80 with the following command:
`docker run -p 80:1339 run pagepark/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 pagepark/pagerank`
### Updates
#### v0.7.9 11/8/17 by DW

Loading…
Cancel
Save