Adds Dockerfile, changes config.js to use type:file

This commit is contained in:
Curtis Mattoon 2018-03-23 10:16:54 -04:00
parent ad7702aaf4
commit 0bf0fbfe58
3 changed files with 26 additions and 6 deletions

2
.dockerignore Normal file
View File

@ -0,0 +1,2 @@
node_modules
npm-debug.log

21
Dockerfile Normal file
View File

@ -0,0 +1,21 @@
FROM node:carbon
LABEL org.label-schema.schema-version = "1.0.0"
LABEL org.label-schema.name = "hastebin"
LABEL org.label-schema.description = "Open-Source PasteBin Written in Node.js"
LABEL org.label-schema.vcs-url = "https://github.com/cmattoon/haste-server"
WORKDIR /usr/src/app
# Capture dependencies in their own layer
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE 80
VOLUME ["/data"]
CMD ["npm", "start"]

View File

@ -1,7 +1,7 @@
{
"host": "0.0.0.0",
"port": 7777,
"port": 80,
"keyLength": 10,
@ -33,11 +33,8 @@
},
"storage": {
"type": "redis",
"host": "0.0.0.0",
"port": 6379,
"db": 2,
"expire": 2592000
"type": "file",
"path": "/data"
},
"documents": {