mirror of
https://github.com/seejohnrun/haste-server
synced 2025-08-22 10:53:09 -07:00
Adds Dockerfile, changes config.js to use type:file
This commit is contained in:
parent
ad7702aaf4
commit
0bf0fbfe58
3 changed files with 26 additions and 6 deletions
2
.dockerignore
Normal file
2
.dockerignore
Normal file
|
@ -0,0 +1,2 @@
|
|||
node_modules
|
||||
npm-debug.log
|
21
Dockerfile
Normal file
21
Dockerfile
Normal 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"]
|
||||
|
|
@ -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": {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue