diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..acd3d76 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM node:alpine3.10 +COPY . /srv +WORKDIR /srv +RUN npm install +CMD "npm" "start" diff --git a/README.md b/README.md index 23ca077..b244532 100644 --- a/README.md +++ b/README.md @@ -22,11 +22,20 @@ STDOUT. Check the README there for more details and usages. ## Tested Browsers -* Firefox 8 +* Firefox 74 * Chrome 17 * Safari 5.3 -## Installation +## Docker installation + +`docker build -t haste .` + +`docker run -ti -p 7777:7777 haste` + +open your browser to localhost:7777 + + +## Manual Installation 1. Download the package, and expand it 2. Explore the settings inside of config.js, but the defaults should be good diff --git a/config.js b/config.js index 4b33e28..0c90921 100644 --- a/config.js +++ b/config.js @@ -33,10 +33,8 @@ }, "storage": { - "type": "memcached", - "host": "127.0.0.1", - "port": 11211, - "expire": 2592000 + "type": "file", + "path": "./data" }, "documents": {