Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]



17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down