2018-03-23 15:16:54 +01:00
|
|
|
FROM node:carbon
|
|
|
|
|
|
|
|
LABEL org.label-schema.schema-version = "1.0.0"
|
2018-03-25 19:11:57 +02:00
|
|
|
LABEL org.label-schema.name = "haste-server"
|
2018-03-23 15:16:54 +01:00
|
|
|
LABEL org.label-schema.description = "Open-Source PasteBin Written in Node.js"
|
2018-03-25 19:11:57 +02:00
|
|
|
LABEL org.label-schema.vcs-url = "https://github.com/seejohnrun/haste-server"
|
2018-03-23 15:16:54 +01:00
|
|
|
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
|
|
|
|
# Capture dependencies in their own layer
|
|
|
|
COPY package*.json ./
|
|
|
|
RUN npm install
|
|
|
|
|
|
|
|
COPY . .
|
|
|
|
|
|
|
|
EXPOSE 80
|
|
|
|
|
|
|
|
VOLUME ["/data"]
|
|
|
|
|
|
|
|
CMD ["npm", "start"]
|