Adds Dockerfile, changes config.js to use type:file
This commit is contained in:
parent
ad7702aaf4
commit
0bf0fbfe58
|
@ -0,0 +1,2 @@
|
|||
node_modules
|
||||
npm-debug.log
|
|
@ -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"]
|
||||
|
Loading…
Reference in New Issue