add Docker support

This commit is contained in:
Mauro Rappa 2020-04-13 21:01:06 +01:00
parent 9b0a5ff0a3
commit b0aac83c62
3 changed files with 18 additions and 6 deletions

5
Dockerfile Normal file
View File

@ -0,0 +1,5 @@
FROM node:alpine3.10
COPY . /srv
WORKDIR /srv
RUN npm install
CMD "npm" "start"

View File

@ -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

View File

@ -33,10 +33,8 @@
},
"storage": {
"type": "memcached",
"host": "127.0.0.1",
"port": 11211,
"expire": 2592000
"type": "file",
"path": "./data"
},
"documents": {